diff options
author | 2003-04-17 06:56:04 +0000 | |
---|---|---|
committer | 2003-04-17 06:56:04 +0000 | |
commit | 9bf6056a0e196b87dd4b073a2573460a0f217ef1 (patch) | |
tree | c82821423bb208d29fb033a536d137584fff6e5e | |
parent | strings. mostly from deraadt@, some from tdeval@ and myself (diff) | |
download | wireguard-openbsd-9bf6056a0e196b87dd4b073a2573460a0f217ef1.tar.xz wireguard-openbsd-9bf6056a0e196b87dd4b073a2573460a0f217ef1.zip |
strlcpy; ok tedu
-rw-r--r-- | sbin/fsdb/fsdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c index 6ca35dc492d..254b00b8679 100644 --- a/sbin/fsdb/fsdb.c +++ b/sbin/fsdb/fsdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fsdb.c,v 1.11 2002/06/09 08:13:06 todd Exp $ */ +/* $OpenBSD: fsdb.c,v 1.12 2003/04/17 06:56:04 deraadt Exp $ */ /* $NetBSD: fsdb.c,v 1.7 1997/01/11 06:50:53 lukem Exp $ */ /*- @@ -564,7 +564,7 @@ chnamefunc(idesc) testdir.d_namlen = strlen(idesc->id_name); if (DIRSIZ(NEWDIRFMT, &testdir) <= dirp->d_reclen) { dirp->d_namlen = testdir.d_namlen; - strcpy(dirp->d_name, idesc->id_name); + strlcpy(dirp->d_name, idesc->id_name, sizeof dirp->d_name); return STOP|ALTERED|FOUND; } else return STOP|FOUND; /* won't fit, so give up */ |