summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2014-04-19 12:30:55 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2014-04-19 12:30:55 +0000
commit576e09910ab82916f3a7a56c330e968c9a0dbcbd (patch)
tree42780fb506166492c602f79d00620903e89de262 /usr.sbin/smtpd
parentf6518f3f1cc2c51d4978f5d54782819447a3e22b (diff)
(void) cast strlcpy(), it cannot truncate
(void) cast strlcat(), they are detected and handled later
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/envelope.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/smtpd/envelope.c b/usr.sbin/smtpd/envelope.c
index 244052bb607..9def08ed7f0 100644
--- a/usr.sbin/smtpd/envelope.c
+++ b/usr.sbin/smtpd/envelope.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: envelope.c,v 1.28 2014/02/04 15:44:05 eric Exp $ */
+/* $OpenBSD: envelope.c,v 1.29 2014/04/19 12:30:54 gilles Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@@ -64,7 +64,7 @@ envelope_set_errormsg(struct envelope *e, char *fmt, ...)
err(1, "vsnprintf");
if ((size_t)ret >= sizeof(e->errorline))
- strlcpy(e->errorline + (sizeof(e->errorline) - 4), "...", 4);
+ (void)strlcpy(e->errorline + (sizeof(e->errorline) - 4), "...", 4);
}
void
@@ -681,12 +681,12 @@ ascii_dump_flags(enum envelope_flags flags, char *buf, size_t len)
cpylen = strlcat(buf, "authenticated", len);
if (flags & EF_BOUNCE) {
if (buf[0] != '\0')
- strlcat(buf, " ", len);
+ (void)strlcat(buf, " ", len);
cpylen = strlcat(buf, "bounce", len);
}
if (flags & EF_INTERNAL) {
if (buf[0] != '\0')
- strlcat(buf, " ", len);
+ (void)strlcat(buf, " ", len);
cpylen = strlcat(buf, "internal", len);
}
}
@@ -709,12 +709,12 @@ ascii_dump_mta_relay_flags(uint16_t flags, char *buf, size_t len)
if (flags) {
if (flags & F_TLS_VERIFY) {
if (buf[0] != '\0')
- strlcat(buf, " ", len);
+ (void)strlcat(buf, " ", len);
cpylen = strlcat(buf, "verify", len);
}
if (flags & F_STARTTLS) {
if (buf[0] != '\0')
- strlcat(buf, " ", len);
+ (void)strlcat(buf, " ", len);
cpylen = strlcat(buf, "tls", len);
}
}