From c77a90930a5c24badf3c74e942f81452fae44c09 Mon Sep 17 00:00:00 2001 From: gilles Date: Sat, 19 Apr 2014 17:32:58 +0000 Subject: [PATCH] (void) cast snprintf that cannot truncate --- usr.sbin/smtpd/esc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/smtpd/esc.c b/usr.sbin/smtpd/esc.c index 7bccc22d9ab..32bcbfd5788 100644 --- a/usr.sbin/smtpd/esc.c +++ b/usr.sbin/smtpd/esc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: esc.c,v 1.1 2014/02/04 15:44:05 eric Exp $ */ +/* $OpenBSD: esc.c,v 1.2 2014/04/19 17:32:58 gilles Exp $ */ /* * Copyright (c) 2014 Gilles Chehade @@ -120,7 +120,7 @@ esc_code(enum enhanced_status_class class, enum enhanced_status_code code) { static char buffer[6]; - snprintf(buffer, sizeof buffer, "%d.%d.%d", class, code / 10, code % 10); + (void)snprintf(buffer, sizeof buffer, "%d.%d.%d", class, code / 10, code % 10); return buffer; } -- 2.20.1