diff options
author | brooks <brooks@FreeBSD.org> | 2005-08-26 01:25:59 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2005-08-26 01:25:59 +0000 |
commit | 2263ae4a8d4b1cd3e37f307ad991e0c99a9106ef (patch) | |
tree | 2a8e8e1ff73f3bd17bf240909179071ec0cf2ea5 /sbin | |
parent | 8f09bbbbfb3963b60ad0c62488babc6e774bc9e3 (diff) | |
download | FreeBSD-src-2263ae4a8d4b1cd3e37f307ad991e0c99a9106ef.zip FreeBSD-src-2263ae4a8d4b1cd3e37f307ad991e0c99a9106ef.tar.gz |
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
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/conflex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/dhclient/conflex.c b/sbin/dhclient/conflex.c index c330191..3c8932d 100644 --- a/sbin/dhclient/conflex.c +++ b/sbin/dhclient/conflex.c @@ -236,6 +236,7 @@ read_string(FILE *cfile) } if (bs) { bs = 0; + i--; tokbuf[i] = c; } else if (c == '\\') bs = 1; |