summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pwd_mkdb
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-05-29 18:39:00 +0000
committerderaadt <deraadt@openbsd.org>2002-05-29 18:39:00 +0000
commit2484043f912f01882f43412d74aca988f8ae31e1 (patch)
tree5b0835b1f2160decbe7dd72ef7a1327d0bdcc3be /usr.sbin/pwd_mkdb
parentstrlcat (diff)
downloadwireguard-openbsd-2484043f912f01882f43412d74aca988f8ae31e1.tar.xz
wireguard-openbsd-2484043f912f01882f43412d74aca988f8ae31e1.zip
more strlcat and strlcpy
Diffstat (limited to 'usr.sbin/pwd_mkdb')
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index 1b406ffafc6..7dcc77cf524 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.28 2002/05/22 09:09:32 deraadt Exp $ */
+/* $OpenBSD: pwd_mkdb.c,v 1.29 2002/05/29 18:39:00 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.28 2002/05/22 09:09:32 deraadt Exp $";
+static char *rcsid = "$OpenBSD: pwd_mkdb.c,v 1.29 2002/05/29 18:39:00 deraadt Exp $";
#endif
#endif /* not lint */
@@ -481,8 +481,8 @@ changedir(path, dir)
p = strrchr(path, '/');
strlcpy(fixed, dir, sizeof fixed);
if (p) {
- strcat(fixed, "/");
- strcat(fixed, p + 1);
+ strlcat(fixed, "/", sizeof fixed);
+ strlcat(fixed, p + 1, sizeof fixed);
}
return (fixed);
}