diff options
Diffstat (limited to 'usr.sbin/nsd/dname.c')
-rw-r--r-- | usr.sbin/nsd/dname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/nsd/dname.c b/usr.sbin/nsd/dname.c index d264d202f7e..5640899c1a1 100644 --- a/usr.sbin/nsd/dname.c +++ b/usr.sbin/nsd/dname.c @@ -389,7 +389,7 @@ dname_to_string(const dname_type *dname, const dname_type *origin) const uint8_t *src; if (dname->label_count == 1) { - strcpy(buf, "."); + strlcpy(buf, ".", sizeof(buf)); return buf; } |