diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2007-12-09 13:57:42 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2007-12-09 13:57:42 +0000 |
commit | 83cb0944e7feb60904f8b3d60745f266644a6012 (patch) | |
tree | 35186dc2e1d4cf3039842211323ff5f0a636960d /usr.sbin/bind/lib/isc/unix/dir.c | |
parent | 1173d5eff8dc423c129f442023419436ee94db23 (diff) |
more strcpy fixes
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 "*". |