libpkgconf: fileio: prevent buffer overflow. #191
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue