diff options
author | Brian Somers <brian@FreeBSD.org> | 1999-12-20 20:47:58 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1999-12-20 20:47:58 +0000 |
commit | 1b365e7039c0f9358cca91d951de871f40cf169e (patch) | |
tree | 02db75c6a06b361a880243455fbd8d206f27f2fb /usr.sbin | |
parent | 99c215c08be5ac7a3932bca1b7273db21d449ad3 (diff) | |
download | src-1b365e7039c0f9358cca91d951de871f40cf169e.tar.gz src-1b365e7039c0f9358cca91d951de871f40cf169e.zip |
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/systems.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c index b12a46c602ac..935e871a8778 100644 --- a/usr.sbin/ppp/systems.c +++ b/usr.sbin/ppp/systems.c @@ -320,9 +320,16 @@ ReadSystem(struct bundle *bundle, const char *name, const char *file, break; default: - if ((wp = findblank(cp, 0)) != NULL && *wp == '#') { - *wp = '\0'; - cp = strip(cp); + if ((wp = findblank(cp, 0)) != NULL) { + while (issep(*wp)) + *wp++ = '\0'; + if (*wp == '#') + *wp = '\0'; + if (*wp != '\0') { + log_Printf(LogWARN, "Bad label in %s (line %d) - too many words.\n", + filename, linenum); + continue; + } } wp = strchr(cp, ':'); if (wp == NULL || wp[1] != '\0') { |