summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2014-04-19 16:52:21 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2014-04-19 16:52:21 +0000
commit9f160c61c060941fa511dff8d3eed826f1176898 (patch)
tree4ffd641322cdf1c1ac1eb687b2d046431ee44c8a
parenta2eea90f2984b0e279b3fce396c2db9bf4391747 (diff)
(void) cast a strlcpy() that cannot truncate because lka.c ensures the
reply will fit in the buffer before returning the answer
-rw-r--r--usr.sbin/smtpd/smtp_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index f879a11d38d..7fd90d870d4 100644
--- a/usr.sbin/smtpd/smtp_session.c
+++ b/usr.sbin/smtpd/smtp_session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp_session.c,v 1.203 2014/04/19 16:50:28 gilles Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.204 2014/04/19 16:52:20 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -352,7 +352,7 @@ smtp_session_imsg(struct mproc *p, struct imsg *imsg)
m_get_int(&m, &status);
if (status == LKA_OK) {
m_get_string(&m, &helo);
- strlcpy(s->smtpname, helo, sizeof(s->smtpname));
+ (void)strlcpy(s->smtpname, helo, sizeof(s->smtpname));
}
m_end(&m);
smtp_connected(s);