diff options
Diffstat (limited to 'games/arithmetic/arithmetic.c')
-rw-r--r-- | games/arithmetic/arithmetic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/arithmetic/arithmetic.c b/games/arithmetic/arithmetic.c index 0f2f85db86d..8cd72060abc 100644 --- a/games/arithmetic/arithmetic.c +++ b/games/arithmetic/arithmetic.c @@ -117,7 +117,7 @@ main(argc, argv) register char *p; for (p = keys = optarg; *p; ++p) - if (!index(keylist, *p)) { + if (!strchr(keylist, *p)) { (void)fprintf(stderr, "arithmetic: unknown key.\n"); exit(1); @@ -365,7 +365,7 @@ opnum(op) { char *p; - if (op == 0 || (p = index(keylist, op)) == NULL) { + if (op == 0 || (p = strchr(keylist, op)) == NULL) { (void)fprintf(stderr, "arithmetic: bug: op %c not in keylist %s\n", op, keylist); exit(1); |