mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 03:11:52 +01:00
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:
parent
8f09bbbbfb
commit
2263ae4a8d
@ -236,6 +236,7 @@ read_string(FILE *cfile)
|
||||
}
|
||||
if (bs) {
|
||||
bs = 0;
|
||||
i--;
|
||||
tokbuf[i] = c;
|
||||
} else if (c == '\\')
|
||||
bs = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user