summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/util.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/util.c
parent233f8a77d6f586d24e1bb0d0caa895631000c112 (diff)
strcpy/strncat/sprintf --> strlcpy/strlcat/snprintf
ok jakob@
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)