@ -73,9 +73,14 @@ pkg_fgetline(char *line, size_t size, FILE *stream)
break;
}
else
{
if (quoted)
*s++ = '\\';
*s++ = c;
*s = '\0';
if (c == EOF && (s == line || ferror(stream)))