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

feature/tap-sh
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;
}
else
{
if (quoted)
*s++ = '\\';
*s++ = c;
}
}
*s = '\0';