summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorjoshd <joshd@cvs.openbsd.org>1996-07-26 05:26:23 +0000
committerjoshd <joshd@cvs.openbsd.org>1996-07-26 05:26:23 +0000
commit9020e890888a513eaa5bb0659a435d19a4b748ec (patch)
tree525dd90cb0afb1998fc3f42872174885782edde5 /usr.sbin
parent7284714cd6f9cc5a5ff17d2eb7ea7c5ddfbf6bea (diff)
Same as last commit, use snprintf, not sprintf
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/syslogd/syslogd.c2
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;