summaryrefslogtreecommitdiffstats
path: root/usr.bin/hexdump/hexdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/hexdump/hexdump.c')
-rw-r--r--usr.bin/hexdump/hexdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/hexdump/hexdump.c b/usr.bin/hexdump/hexdump.c
index c3aaab5..d3c4bb5 100644
--- a/usr.bin/hexdump/hexdump.c
+++ b/usr.bin/hexdump/hexdump.c
@@ -61,7 +61,7 @@ main(int argc, char *argv[])
(void)setlocale(LC_ALL, "");
- if (!(p = rindex(argv[0], 'o')) || strcmp(p, "od"))
+ if (!(p = strrchr(argv[0], 'o')) || strcmp(p, "od"))
newsyntax(argc, &argv);
else
oldsyntax(argc, &argv);
OpenPOWER on IntegriCloud