diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-01-19 03:54:26 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-01-19 03:54:26 +0000 |
commit | 9a1c5c3dc3be273273208de2a8bf595642d3c43e (patch) | |
tree | 983175f24933fccdf7050a9d818cd9992e4b24b3 /sbin | |
parent | 71e004f79e0f58da32081bbb4065d0c2a9516465 (diff) |
Adjust lexchar position by ugflag once only.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/conflex.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/dhclient/conflex.c b/sbin/dhclient/conflex.c index 59888293d95..588873e2178 100644 --- a/sbin/dhclient/conflex.c +++ b/sbin/dhclient/conflex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conflex.c,v 1.27 2014/01/18 01:41:28 krw Exp $ */ +/* $OpenBSD: conflex.c,v 1.28 2014/01/19 03:54:25 krw Exp $ */ /* Lexical scanner for dhclient config file. */ @@ -130,11 +130,14 @@ get_token(FILE *cfile) { int c, ttok; static char tb[2]; - int l, p; + int l, p, u; + u = ugflag; + do { l = line; - p = lpos - ugflag; + p = lpos - u; + u = 0; c = get_char(cfile); |