summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2014-04-19 13:52:50 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2014-04-19 13:52:50 +0000
commite7ad1588e4fd1bd5950df8e260447b957b68f113 (patch)
tree5e8d477e9e5831bcbf06bd2743a6f928aa235f34
parentf940a611479adb66901756fd4302d066a4ae6ea8 (diff)
(cast) void two strlcpy() and a snprintf() that cannot truncate
-rw-r--r--usr.sbin/smtpd/smtp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/smtp.c b/usr.sbin/smtpd/smtp.c
index 66cc00ef30f..5c673888ddb 100644
--- a/usr.sbin/smtpd/smtp.c
+++ b/usr.sbin/smtpd/smtp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp.c,v 1.135 2014/04/09 18:55:19 eric Exp $ */
+/* $OpenBSD: smtp.c,v 1.136 2014/04/19 13:52:49 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -248,10 +248,10 @@ smtp_enqueue(uid_t *euid)
if (listener == NULL) {
listener = &local;
- strlcpy(listener->tag, "local", sizeof(listener->tag));
+ (void)strlcpy(listener->tag, "local", sizeof(listener->tag));
listener->ss.ss_family = AF_LOCAL;
listener->ss.ss_len = sizeof(struct sockaddr *);
- strlcpy(listener->hostname, "localhost",
+ (void)strlcpy(listener->hostname, "localhost",
sizeof(listener->hostname));
}
@@ -269,7 +269,7 @@ smtp_enqueue(uid_t *euid)
hostname = "localhost";
if (euid) {
- snprintf(buf, sizeof(buf), "%d@localhost", *euid);
+ (void)snprintf(buf, sizeof(buf), "%d@localhost", *euid);
hostname = buf;
}