diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-11-11 20:14:54 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-11-11 20:14:54 +0000 |
commit | b7a96fc32231ed8ea05b63b938a0df03d297578b (patch) | |
tree | 1f8b579b5b5dbf2220032980f260b54c7a39018d /usr.sbin | |
parent | fab0389990707a83804011d9e2ecddef87871c7c (diff) |
strchr("whatever", 0) returns non NULL. From Patrick Latifi.
ok deraadt@ millert@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 7dd0782bb05..c34ec669d28 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.c,v 1.84 2004/09/14 23:37:06 deraadt Exp $ */ +/* $OpenBSD: syslogd.c,v 1.85 2004/11/11 20:14:53 otto Exp $ */ /* * Copyright (c) 1983, 1988, 1993, 1994 @@ -39,7 +39,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94"; #else -static const char rcsid[] = "$OpenBSD: syslogd.c,v 1.84 2004/09/14 23:37:06 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: syslogd.c,v 1.85 2004/11/11 20:14:53 otto Exp $"; #endif #endif /* not lint */ @@ -1291,7 +1291,7 @@ cfline(char *line, struct filed *f, char *prog) *bp = '\0'; /* skip cruft */ - while (strchr(", ;", *q)) + while (*q && strchr(", ;", *q)) q++; /* decode priority name */ |