summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/axfr.c
diff options
context:
space:
mode:
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"));