diff options
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 1e453d76b1c..0bffe69c837 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -638,7 +638,7 @@ fprintlog(f, flags, msg) case F_FORW: dprintf(" %s\n", f->f_un.f_forw.f_hname); - l = sprintf(line, "<%d>%.15s %s", f->f_prevpri, + l = snprintf(line, MAXLINE, "<%d>%.15s %s", f->f_prevpri, iov[0].iov_base, iov[4].iov_base); if (l > MAXLINE) l = MAXLINE; |