From b80c4ab3cdb42ba11a5dc866bac85c01617b4da3 Mon Sep 17 00:00:00 2001 From: gilles Date: Sat, 19 Apr 2014 12:26:15 +0000 Subject: [PATCH] (void) cast this strlcpy(), it cannot truncate --- usr.sbin/smtpd/dns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/smtpd/dns.c b/usr.sbin/smtpd/dns.c index 1e3ad83fd07..d73acbec172 100644 --- a/usr.sbin/smtpd/dns.c +++ b/usr.sbin/smtpd/dns.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dns.c,v 1.77 2014/04/19 11:41:49 gilles Exp $ */ +/* $OpenBSD: dns.c,v 1.78 2014/04/19 12:26:15 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -458,7 +458,7 @@ print_dname(const char *_dname, char *buf, size_t max) size_t left, n, count; if (_dname[0] == 0) { - strlcpy(buf, ".", max); + (void)strlcpy(buf, ".", max); return buf; } -- 2.20.1