From: gilles Date: Sat, 19 Apr 2014 12:26:15 +0000 (+0000) Subject: (void) cast this strlcpy(), it cannot truncate X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b80c4ab3cdb42ba11a5dc866bac85c01617b4da3;p=openbsd (void) cast this strlcpy(), it cannot truncate --- 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; }