diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2003-04-05 19:38:44 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2003-04-05 19:38:44 +0000 |
commit | acfc455dc0ab9ad6bd958b1c3b0920518f4fa330 (patch) | |
tree | 902ca50f0e9334bead523f2ac5bd5c15dfe2ae45 /usr.sbin/amd | |
parent | 86de5cdeae2f2c4754534ce041eb70586b6bb789 (diff) |
strncpy should be strlcpy. ok pvalchev
Diffstat (limited to 'usr.sbin/amd')
-rw-r--r-- | usr.sbin/amd/amd/mapc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/amd/amd/mapc.c b/usr.sbin/amd/amd/mapc.c index aafc81132a0..244f25401cc 100644 --- a/usr.sbin/amd/amd/mapc.c +++ b/usr.sbin/amd/amd/mapc.c @@ -38,7 +38,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)mapc.c 8.1 (Berkeley) 6/6/93";*/ -static char *rcsid = "$Id: mapc.c,v 1.9 2003/04/05 19:19:44 pvalchev Exp $"; +static char *rcsid = "$Id: mapc.c,v 1.10 2003/04/05 19:38:43 tedu Exp $"; #endif /* not lint */ /* @@ -685,7 +685,7 @@ mapc_meta_search(mnt_map *m, char *key, char **pval, int recurse) */ strlcpy(wildname, key, sizeof wildname); while (error && (subp = strrchr(wildname, '/'))) { - strncpy(subp, "/*", 2); + strlcpy(subp, "/*", 3); #ifdef DEBUG dlog("mapc recurses on %s", wildname); #endif |