diff options
author | 2003-05-17 19:44:06 +0000 | |
---|---|---|
committer | 2003-05-17 19:44:06 +0000 | |
commit | d30624504c7b6a31bc7c39c54c7b4dc3656db6bd (patch) | |
tree | 113e758689adbaab4dce705e26d79756179b3ff5 | |
parent | No need to duplicate TLB_ defines manually with TTE_ defines. (diff) | |
download | wireguard-openbsd-d30624504c7b6a31bc7c39c54c7b4dc3656db6bd.tar.xz wireguard-openbsd-d30624504c7b6a31bc7c39c54c7b4dc3656db6bd.zip |
Fix typo in last commit, spotted by Brian Poole. That'll teach me
to commit on an empty stomach.
-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 afd9d56542e..8eaf02b58a8 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.c,v 1.61 2003/05/17 17:49:28 millert Exp $ */ +/* $OpenBSD: syslogd.c,v 1.62 2003/05/17 19:44:06 millert Exp $ */ /* * Copyright (c) 1983, 1988, 1993, 1994 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94"; #else -static char rcsid[] = "$OpenBSD: syslogd.c,v 1.61 2003/05/17 17:49:28 millert Exp $"; +static char rcsid[] = "$OpenBSD: syslogd.c,v 1.62 2003/05/17 19:44:06 millert Exp $"; #endif #endif /* not lint */ @@ -846,7 +846,7 @@ wallmsg(struct filed *f, struct iovec *iov) continue; /* must use strncpy since ut_* may not be NUL terminated */ strncpy(line, ut.ut_line, sizeof(line) - 1); - line[sizeof(line) - 1]; + line[sizeof(line) - 1] = '\0'; if (f->f_type == F_WALL) { if ((p = ttymsg(iov, 6, line, TTYMSGTIME)) != NULL) { errno = 0; /* already in msg */ |