diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2014-04-19 13:40:25 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2014-04-19 13:40:25 +0000 |
commit | b5393b17a9d80d176a40c7e3499977058191a158 (patch) | |
tree | a4878b5bd5d6f639f752940fb8bf4e02feee228e /usr.sbin | |
parent | aa7ccbd2884d6bfacda9c4d64afd7449f38af252 (diff) |
(void) cast strlcpy() and snprintf() that cannot truncate
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/queue.c b/usr.sbin/smtpd/queue.c index 62ab6f97665..5f68ad86f86 100644 --- a/usr.sbin/smtpd/queue.c +++ b/usr.sbin/smtpd/queue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue.c,v 1.161 2014/04/08 15:25:43 eric Exp $ */ +/* $OpenBSD: queue.c,v 1.162 2014/04/19 13:40:24 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -688,10 +688,10 @@ queue_log(const struct envelope *e, const char *prefix, const char *status) { char rcpt[SMTPD_MAXLINESIZE]; - strlcpy(rcpt, "-", sizeof rcpt); + (void)strlcpy(rcpt, "-", sizeof rcpt); if (strcmp(e->rcpt.user, e->dest.user) || strcmp(e->rcpt.domain, e->dest.domain)) - snprintf(rcpt, sizeof rcpt, "%s@%s", + (void)snprintf(rcpt, sizeof rcpt, "%s@%s", e->rcpt.user, e->rcpt.domain); log_info("%s: %s for %016" PRIx64 ": from=<%s@%s>, to=<%s@%s>, " |