diff options
Diffstat (limited to 'usr.sbin/pkg_install/add/futil.c')
-rw-r--r-- | usr.sbin/pkg_install/add/futil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/add/futil.c b/usr.sbin/pkg_install/add/futil.c index 075095f..36e6474 100644 --- a/usr.sbin/pkg_install/add/futil.c +++ b/usr.sbin/pkg_install/add/futil.c @@ -42,7 +42,7 @@ make_hierarchy(char *dir) else cp1 = cp2 = dir; while (cp2) { - if ((cp2 = index(cp1, '/')) !=NULL ) + if ((cp2 = strchr(cp1, '/')) !=NULL ) *cp2 = '\0'; if (fexists(dir)) { if (!isdir(dir)) { |