diff options
Diffstat (limited to 'pkgtools/pkg_install/files/lib/str.c')
-rw-r--r-- | pkgtools/pkg_install/files/lib/str.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/pkgtools/pkg_install/files/lib/str.c b/pkgtools/pkg_install/files/lib/str.c index 41200fcb4f6..0a53862223f 100644 --- a/pkgtools/pkg_install/files/lib/str.c +++ b/pkgtools/pkg_install/files/lib/str.c @@ -1,4 +1,4 @@ -/* $NetBSD: str.c,v 1.6 2003/09/23 07:13:54 grant Exp $ */ +/* $NetBSD: str.c,v 1.7 2003/10/29 23:00:28 jlam Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -11,7 +11,7 @@ #if 0 static const char *rcsid = "Id: str.c,v 1.5 1997/10/08 07:48:21 charnier Exp"; #else -__RCSID("$NetBSD: str.c,v 1.6 2003/09/23 07:13:54 grant Exp $"); +__RCSID("$NetBSD: str.c,v 1.7 2003/10/29 23:00:28 jlam Exp $"); #endif #endif @@ -576,22 +576,6 @@ findbestmatchingname(const char *dir, const char *pattern) } /* - * Bounds-checking strncpy() - */ -char * -strnncpy(char *to, size_t tosize, char *from, size_t cc) -{ - size_t len; - - if ((len = cc) >= tosize - 1) { - len = tosize - 1; - } - (void) strncpy(to, from, len); - to[len] = 0; - return to; -} - -/* * Strip off any .tgz, .tbz or .t[bg]z suffix from fname, * and copy into buffer "buf", the suffix is stored in "sfx" * if "sfx" is not NULL. If no suffix is found, "sfx" is set |