diff options
Diffstat (limited to 'usr.sbin/bind/lib/isc/unix/dir.c')
-rw-r--r-- | usr.sbin/bind/lib/isc/unix/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bind/lib/isc/unix/dir.c b/usr.sbin/bind/lib/isc/unix/dir.c index 78b3014f928..7c0c9de10ca 100644 --- a/usr.sbin/bind/lib/isc/unix/dir.c +++ b/usr.sbin/bind/lib/isc/unix/dir.c @@ -70,7 +70,7 @@ isc_dir_open(isc_dir_t *dir, const char *dirname) { if (strlen(dirname) + 3 > sizeof(dir->dirname)) /* XXXDCL ? */ return (ISC_R_NOSPACE); - strcpy(dir->dirname, dirname); + strlcpy(dir->dirname, dirname, sizeof(dir->dirname)); /* * Append path separator, if needed, and "*". |