diff options
Diffstat (limited to 'games/hack/hack.options.c')
-rw-r--r-- | games/hack/hack.options.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/games/hack/hack.options.c b/games/hack/hack.options.c index 361b94230ec..081f2b43d6e 100644 --- a/games/hack/hack.options.c +++ b/games/hack/hack.options.c @@ -35,11 +35,11 @@ boolean from_env; unsigned num; boolean negated; - if(op = index(opts, ',')) { + if(op = strchr(opts, ',')) { *op++ = 0; parseoptions(op, from_env); } - if(op = index(opts, ' ')) { + if(op = strchr(opts, ' ')) { op2 = op; while(*op++) if(*op != ' ') *op2++ = *op; @@ -106,7 +106,7 @@ boolean from_env; pline("The playername can be set only from HACKOPTIONS."); return; } - op = index(opts,':'); + op = strchr(opts,':'); if(!op) goto bad; (void) strncpy(plname, op+1, sizeof(plname)-1); plname[sizeof(plname)-1] = '\0'; @@ -115,7 +115,7 @@ boolean from_env; /* endgame:5t[op] 5a[round] o[wn] */ if(!strncmp(opts,"endgame",3)) { - op = index(opts,':'); + op = strchr(opts,':'); if(!op) goto bad; op++; while(*op) { |