From: gilles Date: Sat, 19 Apr 2014 17:29:56 +0000 (+0000) Subject: (void) cast snprintf call that cannot truncate X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9443a51f0d2351a65af0f4929175fe87801f8668;p=openbsd (void) cast snprintf call that cannot truncate --- 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 @@ -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;