fix in ini parser

This commit is contained in:
p.kosyh 2010-09-28 12:00:14 +00:00
parent e0a6bbeca5
commit 44105b0cdd

View file

@ -76,6 +76,7 @@ static int fgetsesc(char *oline, size_t size, FILE *fp)
i = strcspn(line, "\n\r");
if (!i || !line[i])
break;
line[i] = 0;
if (line[i - 1] == '\\') {
line[i - 1] = 0;
strncat(oline, line, size);