(void) cast a snprintf() call that cannot truncate
authorgilles <gilles@openbsd.org>
Sat, 19 Apr 2014 16:26:23 +0000 (16:26 +0000)
committergilles <gilles@openbsd.org>
Sat, 19 Apr 2014 16:26:23 +0000 (16:26 +0000)
usr.sbin/smtpd/smtp_session.c

index fbf491e..d2251e2 100644 (file)
@@ -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);
        }
 }