In read_string(), when the last character was a backslash, unincrement

the output index instead of keeping what ever trash was in the buffer.

Reported by:	iedowse
This commit is contained in:
Brooks Davis 2005-08-26 01:25:59 +00:00
parent 6ae27cb6ce
commit 753d6c0327

View File

@ -236,6 +236,7 @@ read_string(FILE *cfile)
}
if (bs) {
bs = 0;
i--;
tokbuf[i] = c;
} else if (c == '\\')
bs = 1;