Keep the backslash if not followed by \n or \r\n when parsing

pull/36/head
Baptiste Daroussin 2012-08-14 11:00:53 +02:00
parent 9a26337507
commit c6f6cb781d
1 changed files with 5 additions and 0 deletions

View File

@ -73,7 +73,12 @@ pkg_fgetline(char *line, size_t size, FILE *stream)
break; break;
} }
else else
{
if (quoted)
*s++ = '\\';
*s++ = c; *s++ = c;
}
} }
*s = '\0'; *s = '\0';