artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24f045f
)
(void) cast this strlcpy(), it cannot truncate
author
gilles
<gilles@openbsd.org>
Sat, 19 Apr 2014 12:26:15 +0000
(12:26 +0000)
committer
gilles
<gilles@openbsd.org>
Sat, 19 Apr 2014 12:26:15 +0000
(12:26 +0000)
usr.sbin/smtpd/dns.c
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/dns.c
b/usr.sbin/smtpd/dns.c
index
1e3ad83
..
d73acbe
100644
(file)
--- a/
usr.sbin/smtpd/dns.c
+++ b/
usr.sbin/smtpd/dns.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dns.c,v 1.7
7 2014/04/19 11:41:49
gilles Exp $ */
+/* $OpenBSD: dns.c,v 1.7
8 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;
}