diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2014-04-19 17:29:57 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2014-04-19 17:29:57 +0000 |
commit | 8cf8f0db14ff8bbb0246d931681a6a786d8cb46d (patch) | |
tree | d78602c7f1e876edf4fc7e369935151bfbd21992 /usr.sbin/smtpd | |
parent | 451b0ee35d4f502a0014df304cedc6015003d73c (diff) |
(void) cast snprintf call that cannot truncate
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/config.c b/usr.sbin/smtpd/config.c index 67c60df174a..35f051da555 100644 --- a/usr.sbin/smtpd/config.c +++ b/usr.sbin/smtpd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.27 2014/04/09 18:55:19 eric Exp $ */ +/* $OpenBSD: config.c,v 1.28 2014/04/19 17:29:56 gilles Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -187,7 +187,7 @@ process_stat(struct mproc *p) return; value.type = STAT_COUNTER; - snprintf(buf, sizeof buf, "buffer.%s.%s", + (void)snprintf(buf, sizeof buf, "buffer.%s.%s", proc_name(smtpd_process), proc_name(p->proc)); value.u.counter = p->bytes_queued_max; |