aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-07-07 13:06:50 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-07-07 13:06:50 +0200
commit853df0300105f79e5d1fd2a3192bd879c144a3a5 (patch)
treecbd1bd7b8f3172a2dd005ef98a4cd54db93da0bf
parent52fb976fe3cfbc2c3bfac38b9a170c46c7021972 (diff)
Replaced index() with strchr()
-rw-r--r--FICS/algcheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/algcheck.c b/FICS/algcheck.c
index da228e5..250c129 100644
--- a/FICS/algcheck.c
+++ b/FICS/algcheck.c
@@ -98,9 +98,9 @@ get_move_info(char *str, int *piece, int *ff, int *fr, int *tf, int *tr,
*bishconfusion = 0;
mstrlcpy(tmp, str, sizeof tmp);
- if ((s = index(tmp, '+'))) // Cut off any check marks
+ if ((s = strchr(tmp, '+'))) // Cut off any check marks
*s = '\0';
- if ((s = index(tmp, '='))) // Cut off any promotion marks
+ if ((s = strchr(tmp, '='))) // Cut off any promotion marks
*s = '\0';
*piece = *ff = *fr = *tf = *tr = ALG_UNKNOWN;