summaryrefslogtreecommitdiff
path: root/games/hack/hack.tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/hack/hack.tty.c')
-rw-r--r--games/hack/hack.tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/hack/hack.tty.c b/games/hack/hack.tty.c
index 727fea0d239..2b5cc04b595 100644
--- a/games/hack/hack.tty.c
+++ b/games/hack/hack.tty.c
@@ -216,7 +216,7 @@ register int c;
while((c = readchar()) != '\n') {
if(flags.cbreak) {
if(c == ' ') break;
- if(s && index(s,c)) {
+ if(s && strchr(s,c)) {
morc = c;
break;
}