diff options
author | brian <brian@FreeBSD.org> | 2000-01-27 00:40:10 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-01-27 00:40:10 +0000 |
commit | 299a0de13efd998c6026ab4a47ce7a8f20373c71 (patch) | |
tree | 6d66ddc4409f84cd246bae88790f0b8bbe404573 /usr.sbin/ppp/defs.c | |
parent | af563a21f8a15eb3b2c36a726ec48aac4ec87496 (diff) | |
download | FreeBSD-src-299a0de13efd998c6026ab4a47ce7a8f20373c71.zip FreeBSD-src-299a0de13efd998c6026ab4a47ce7a8f20373c71.tar.gz |
Actually ignore comments at the end of lines - broken with the commit
that made ppp *not* treat #s in quoted arguments as comments.
Diffstat (limited to 'usr.sbin/ppp/defs.c')
-rw-r--r-- | usr.sbin/ppp/defs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/defs.c b/usr.sbin/ppp/defs.c index bf7492d..a8eef4d 100644 --- a/usr.sbin/ppp/defs.c +++ b/usr.sbin/ppp/defs.c @@ -296,7 +296,7 @@ MakeArgs(char *script, char **pvect, int maxargs, int flags) int nargs; nargs = 0; - while (*script) { + while (*script && *script != '#') { script += strspn(script, " \t"); if (*script) { if (nargs >= maxargs - 1) |