summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/nsd/util.c')
-rw-r--r--usr.sbin/nsd/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/nsd/util.c b/usr.sbin/nsd/util.c
index dbdf64308e7..e19a23a8ac1 100644
--- a/usr.sbin/nsd/util.c
+++ b/usr.sbin/nsd/util.c
@@ -534,7 +534,7 @@ b32_ntop(uint8_t const *src, size_t srclength, char *target, size_t targsize)
{
if(targsize < strlen(buf)+1)
return -1;
- strcpy(target, buf);
+ strlcpy(target, buf, targsize);
len += strlen(buf);
}
else if(targsize < 1)