From 9443a51f0d2351a65af0f4929175fe87801f8668 Mon Sep 17 00:00:00 2001 From: gilles Date: Sat, 19 Apr 2014 17:29:56 +0000 Subject: [PATCH] (void) cast snprintf call that cannot truncate --- usr.sbin/smtpd/config.c | 4 ++-- 1 file 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 @@ -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; -- 2.20.1