summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/axfr.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2010-01-17 20:45:00 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2010-01-17 20:45:00 +0000
commitd4a6fa80535c3a5c61c9a1e2224abd24b9985a9f (patch)
tree401f3fc0733ce9621909a83e4ebd22394fe1b0f1 /usr.sbin/nsd/axfr.c
parent233f8a77d6f586d24e1bb0d0caa895631000c112 (diff)
strcpy/strncat/sprintf --> strlcpy/strlcat/snprintf
ok jakob@
Diffstat (limited to 'usr.sbin/nsd/axfr.c')
-rw-r--r--usr.sbin/nsd/axfr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/nsd/axfr.c b/usr.sbin/nsd/axfr.c
index 0bec4877f97..ae17388575e 100644
--- a/usr.sbin/nsd/axfr.c
+++ b/usr.sbin/nsd/axfr.c
@@ -179,7 +179,7 @@ answer_axfr_ixfr(struct nsd *nsd, struct query *q)
if (addr2ip(q->addr, address, 128)) {
DEBUG(DEBUG_XFRD,1, (LOG_INFO,
"addr2ip failed"));
- strcpy(address, "[unknown]");
+ strlcpy(address, "[unknown]", sizeof(address));
}
VERBOSITY(1, (LOG_INFO, "axfr for zone %s from client %s refused, %s", dname_to_string(q->qname, NULL), address, acl?"blocked":"no acl matches"));