diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2014-04-19 17:45:06 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2014-04-19 17:45:06 +0000 |
commit | b373b2cdcb3c9b49198e6e534f546f1aa3975335 (patch) | |
tree | 5169630e37342c2b466420d26f413f39303a7383 /usr.sbin/smtpd | |
parent | f2e443f0513d1b02d02367343f1fdd9c78a504b0 (diff) |
(void) cast snprintf() call used to craft fatalx() message from within
smtpd, buffer is large enough and truncation harmless, we want to
avoid memory allocation in that case and use a best-effort
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/mproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mproc.c b/usr.sbin/smtpd/mproc.c index 4be3d61c1a2..a5223d61e0c 100644 --- a/usr.sbin/smtpd/mproc.c +++ b/usr.sbin/smtpd/mproc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mproc.c,v 1.7 2013/12/26 17:25:32 eric Exp $ */ +/* $OpenBSD: mproc.c,v 1.8 2014/04/19 17:45:05 gilles Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@faurot.net> @@ -424,7 +424,7 @@ m_error(const char *error) { char buf[512]; - snprintf(buf, sizeof buf, "%s: %s: %s", + (void)snprintf(buf, sizeof buf, "%s: %s: %s", proc_name(smtpd_process), imsg_to_str(current->hdr.type), error); |