summaryrefslogtreecommitdiff
path: root/usr.sbin/syslogd
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-05-17 19:44:07 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-05-17 19:44:07 +0000
commit632b2281a6d12af4b48f2cb22f312d9b2f8ba52c (patch)
treefa84b3f44e69456224506b4d0f7681c83a862d89 /usr.sbin/syslogd
parent5b296b80d9781c69f13b2c6b0b66b9e97ed65d8e (diff)
Fix typo in last commit, spotted by Brian Poole. That'll teach me
to commit on an empty stomach.
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r--usr.sbin/syslogd/syslogd.c6
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 */