From: gilles Date: Sat, 19 Apr 2014 17:47:40 +0000 (+0000) Subject: (void) cast snprintf() that cannot truncate X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=096563ea2a2c048b3bcff1fa987e82c5f8fb75bf;p=openbsd (void) cast snprintf() that cannot truncate --- diff --git a/usr.sbin/smtpd/queue_api.c b/usr.sbin/smtpd/queue_api.c index ca5e929b742..5c42537d236 100644 --- a/usr.sbin/smtpd/queue_api.c +++ b/usr.sbin/smtpd/queue_api.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue_api.c,v 1.3 2013/10/27 18:21:07 eric Exp $ */ +/* $OpenBSD: queue_api.c,v 1.4 2014/04/19 17:47:40 gilles Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -149,7 +149,7 @@ queue_msg_dispatch(void) /* XXX needs more love */ r = -1; - snprintf(path, sizeof path, "/tmp/message.XXXXXXXXXX"); + (void)snprintf(path, sizeof path, "/tmp/message.XXXXXXXXXX"); fd = mkstemp(path); if (fd == -1) { log_warn("warn: queue-api: mkstemp");