From owner-svn-src-all@FreeBSD.ORG Wed Dec 17 16:55:58 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 740B81065675; Wed, 17 Dec 2008 16:55:58 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 60CB68FC1A; Wed, 17 Dec 2008 16:55:58 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBHGtwpI009530; Wed, 17 Dec 2008 16:55:58 GMT (envelope-from obrien@svn.freebsd.org) Received: (from obrien@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBHGtwkr009529; Wed, 17 Dec 2008 16:55:58 GMT (envelope-from obrien@svn.freebsd.org) Message-Id: <200812171655.mBHGtwkr009529@svn.freebsd.org> From: "David E. O'Brien" Date: Wed, 17 Dec 2008 16:55:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186236 - head/usr.sbin/syslogd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 16:55:58 -0000 Author: obrien Date: Wed Dec 17 16:55:58 2008 New Revision: 186236 URL: http://svn.freebsd.org/changeset/base/186236 Log: Use passed parameter rather than the #define. (more accurate extraction of Juniper Networks change) Modified: head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/syslogd/syslogd.c ============================================================================== --- head/usr.sbin/syslogd/syslogd.c Wed Dec 17 16:54:29 2008 (r186235) +++ head/usr.sbin/syslogd/syslogd.c Wed Dec 17 16:55:58 2008 (r186236) @@ -1372,8 +1372,8 @@ wallmsg(struct filed *f, struct iovec *i 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); }