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 2005-08-26 01:25:59 +00:00
parent 8f09bbbbfb
commit 2263ae4a8d

View File

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