diff options
author | 2014-04-19 16:52:20 +0000 | |
---|---|---|
committer | 2014-04-19 16:52:20 +0000 | |
commit | d429e01dd6082fd9f72876af12d11278d7fe5182 (patch) | |
tree | 4986db3ecbb4fe46b822fef7e9ac1ca062e37df1 | |
parent | Simplify things by using the return code of ask_yn() directly instead (diff) | |
download | wireguard-openbsd-d429e01dd6082fd9f72876af12d11278d7fe5182.tar.xz wireguard-openbsd-d429e01dd6082fd9f72876af12d11278d7fe5182.zip |
(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.c | 4 |
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); |