From 4da1d31668fb044ec87b88f9a927231fe7aefe7c Mon Sep 17 00:00:00 2001 From: jsteube Date: Sun, 12 Nov 2023 11:02:10 +0000 Subject: [PATCH] Replaced index() with strchr() to enable mingw to compile windows binaries --- src/shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared.c b/src/shared.c index 04fc71ef4..5b2375009 100644 --- a/src/shared.c +++ b/src/shared.c @@ -1490,7 +1490,7 @@ int extract_dynamicx_hash (const u8 *input_buf, const int input_len, u8 **output if (sscanf ((char *) input_buf, "$dynamic_%d$", &hash_mode) != 1) return -1; - *output_buf = (u8 *) index ((char *) input_buf + 10, '$'); + *output_buf = (u8 *) strchr ((char *) input_buf + 10, '$'); if (*output_buf == NULL) return -1;