summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pwd_mkdb
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-05-22 09:09:32 +0000
committerderaadt <deraadt@openbsd.org>2002-05-22 09:09:32 +0000
commit2261d3e17ed89f657e62c341ce13baef19457ca1 (patch)
tree164075cf3e4c218c5213d4064c264a1401da6596 /usr.sbin/pwd_mkdb
parentSmall fix: - Start new sentence on a new line. (diff)
downloadwireguard-openbsd-2261d3e17ed89f657e62c341ce13baef19457ca1.tar.xz
wireguard-openbsd-2261d3e17ed89f657e62c341ce13baef19457ca1.zip
more strcpy/sprintf death; mpech ok
Diffstat (limited to 'usr.sbin/pwd_mkdb')
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index 1de1d15d0de..1b406ffafc6 100644
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwd_mkdb.c,v 1.27 2002/02/16 21:28:08 millert Exp $ */
+/* $OpenBSD: pwd_mkdb.c,v 1.28 2002/05/22 09:09:32 deraadt Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -45,7 +45,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "from: @(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94";
#else
-static char *rcsid = "$OpenBSD: pwd_mkdb.c,v 1.27 2002/02/16 21:28:08 millert Exp $";
+static char *rcsid = "$OpenBSD: pwd_mkdb.c,v 1.28 2002/05/22 09:09:32 deraadt Exp $";
#endif
#endif /* not lint */
@@ -479,7 +479,7 @@ changedir(path, dir)
return (path);
p = strrchr(path, '/');
- strcpy(fixed, dir);
+ strlcpy(fixed, dir, sizeof fixed);
if (p) {
strcat(fixed, "/");
strcat(fixed, p + 1);