libpkgconf: fileio: prevent buffer overflow. #191

Closed
stoeckmann wants to merge 1 commits from getline into master
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ char *
pkgconf_fgetline(char *line, size_t size, FILE *stream)
{
char *s = line;
char *end = line + size - 1;
char *end = line + size - 2;
bool quoted = false;
int c = '\0', c2;