summaryrefslogtreecommitdiffstats
path: root/bin/test
diff options
context:
space:
mode:
Diffstat (limited to 'bin/test')
-rw-r--r--bin/test/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/test/test.c b/bin/test/test.c
index 1259e68..62c0309 100644
--- a/bin/test/test.c
+++ b/bin/test/test.c
@@ -194,7 +194,7 @@ main(int argc, char **argv)
int res;
char *p;
- if ((p = rindex(argv[0], '/')) == NULL)
+ if ((p = strrchr(argv[0], '/')) == NULL)
p = argv[0];
else
p++;
OpenPOWER on IntegriCloud