diff --git a/fileio.c b/fileio.c index 3b8bf3e..2c6b9e9 100644 --- a/fileio.c +++ b/fileio.c @@ -74,8 +74,10 @@ pkg_fgetline(char *line, size_t size, FILE *stream) } else { - if (quoted) + if (quoted) { *s++ = '\\'; + quoted = false; + } *s++ = c; }