From 853df0300105f79e5d1fd2a3192bd879c144a3a5 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 7 Jul 2024 13:06:50 +0200 Subject: Replaced index() with strchr() --- FICS/algcheck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FICS/algcheck.c') 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; -- cgit v1.2.3