diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-29 18:39:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-29 18:39:01 +0000 |
commit | da4b035c00c91f83f53006859ff51cc6316c59fd (patch) | |
tree | 5b71ada85fe1e39d042db8b6a28ab5ba06a71408 /usr.sbin/pwd_mkdb | |
parent | 8852a4e96620349bdbb8b1910914433eb4ae5b23 (diff) |
more strlcat and strlcpy
Diffstat (limited to 'usr.sbin/pwd_mkdb')
-rw-r--r-- | usr.sbin/pwd_mkdb/pwd_mkdb.c | 8 |
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); } |