summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2014-04-19 17:47:40 +0000
committergilles <gilles@openbsd.org>2014-04-19 17:47:40 +0000
commit096563ea2a2c048b3bcff1fa987e82c5f8fb75bf (patch)
treef987524e2950d4155f790c59809d8175ecdb7151
parent(void) cast snprintf() call used to craft fatalx() message from within (diff)
downloadwireguard-openbsd-096563ea2a2c048b3bcff1fa987e82c5f8fb75bf.tar.xz
wireguard-openbsd-096563ea2a2c048b3bcff1fa987e82c5f8fb75bf.zip
(void) cast snprintf() that cannot truncate
-rw-r--r--usr.sbin/smtpd/queue_api.c4
1 files changed, 2 insertions, 2 deletions
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 <eric@openbsd.org>
@@ -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");