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