diff options
author | 2014-04-19 12:26:15 +0000 | |
---|---|---|
committer | 2014-04-19 12:26:15 +0000 | |
commit | b80c4ab3cdb42ba11a5dc866bac85c01617b4da3 (patch) | |
tree | 50f526bfe4f6c3d8aeb53b9ee98be3fe019fa7a4 | |
parent | another questionable "optimization": de used tulip_ifstart_one instead (diff) | |
download | wireguard-openbsd-b80c4ab3cdb42ba11a5dc866bac85c01617b4da3.tar.xz wireguard-openbsd-b80c4ab3cdb42ba11a5dc866bac85c01617b4da3.zip |
(void) cast this strlcpy(), it cannot truncate
-rw-r--r-- | usr.sbin/smtpd/dns.c | 4 |
1 files 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 <gilles@poolp.org> @@ -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; } |