From 77a62a364bc8da536aa0eacdae250837eed26c38 Mon Sep 17 00:00:00 2001 From: obrien Date: Wed, 17 Dec 2008 16:55:58 +0000 Subject: Use passed parameter rather than the #define. (more accurate extraction of Juniper Networks change) --- usr.sbin/syslogd/syslogd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/syslogd') diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index d9aee33..a73ac1b 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1372,8 +1372,8 @@ wallmsg(struct filed *f, struct iovec *iov, const int iovlen) break; if (!strncmp(f->f_un.f_uname[i], ut.ut_name, UT_NAMESIZE)) { - if ((p = ttymsg(iov, IOV_SIZE, line, - TTYMSGTIME)) != NULL) { + if ((p = ttymsg(iov, iovlen, line, TTYMSGTIME)) + != NULL) { errno = 0; /* already in msg */ logerror(p); } -- cgit v1.1