summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2014-04-19 16:26:23 +0000
committergilles <gilles@openbsd.org>2014-04-19 16:26:23 +0000
commitef75c9fef8860935f4bf0ff9b82cbe104dbe50c0 (patch)
treee3edfaf7cca804754be7ab993370eb18457f780c
parentAdd missing description for IPv6 mtudisctimeout sysctl and (diff)
downloadwireguard-openbsd-ef75c9fef8860935f4bf0ff9b82cbe104dbe50c0.tar.xz
wireguard-openbsd-ef75c9fef8860935f4bf0ff9b82cbe104dbe50c0.zip
(void) cast a snprintf() call that cannot truncate
-rw-r--r--usr.sbin/smtpd/smtp_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index fbf491eb864..d2251e2b867 100644
--- a/usr.sbin/smtpd/smtp_session.c
+++ b/usr.sbin/smtpd/smtp_session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp_session.c,v 1.200 2014/04/09 18:55:19 eric Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.201 2014/04/19 16:26:23 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -1951,7 +1951,7 @@ smtp_strstate(int state)
CASE(STATE_BODY);
CASE(STATE_QUIT);
default:
- snprintf(buf, sizeof(buf), "STATE_??? (%d)", state);
+ (void)snprintf(buf, sizeof(buf), "STATE_??? (%d)", state);
return (buf);
}
}