From 096563ea2a2c048b3bcff1fa987e82c5f8fb75bf Mon Sep 17 00:00:00 2001 From: gilles Date: Sat, 19 Apr 2014 17:47:40 +0000 Subject: [PATCH] (void) cast snprintf() that cannot truncate --- usr.sbin/smtpd/queue_api.c | 4 ++-- 1 file 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 @@ -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"); -- 2.20.1