summaryrefslogtreecommitdiffstats
path: root/games/cribbage/instr.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/cribbage/instr.c')
-rw-r--r--games/cribbage/instr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/cribbage/instr.c b/games/cribbage/instr.c
index de6944bd234..39209440245 100644
--- a/games/cribbage/instr.c
+++ b/games/cribbage/instr.c
@@ -76,7 +76,7 @@ instructions()
case 0:
if (!(path = getenv("PAGER")))
path = _PATH_MORE;
- if (pager = rindex(path, '/'))
+ if (pager = strrchr(path, '/'))
++pager;
pager = path;
execlp(path, pager, _PATH_INSTR, (char *)NULL);