From d429e01dd6082fd9f72876af12d11278d7fe5182 Mon Sep 17 00:00:00 2001 From: gilles Date: Sat, 19 Apr 2014 16:52:20 +0000 Subject: [PATCH] (void) cast a strlcpy() that cannot truncate because lka.c ensures the reply will fit in the buffer before returning the answer --- usr.sbin/smtpd/smtp_session.c | 4 ++-- 1 file 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 @@ -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); -- 2.20.1