summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/delete/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_install/delete/main.c')
-rw-r--r--usr.sbin/pkg_install/delete/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/delete/main.c b/usr.sbin/pkg_install/delete/main.c
index 3150118..fc35c4e 100644
--- a/usr.sbin/pkg_install/delete/main.c
+++ b/usr.sbin/pkg_install/delete/main.c
@@ -87,7 +87,7 @@ main(int argc, char **argv)
/* Get all the remaining package names, if any */
while (*argv) {
- while ((pkgs_split = rindex(*argv, (int)'/')) != NULL) {
+ while ((pkgs_split = strrchr(*argv, (int)'/')) != NULL) {
*pkgs_split++ = '\0';
/*
* If character after the '/' is alphanumeric, then we've found the
OpenPOWER on IntegriCloud