Replaced index() with strchr() to enable mingw to compile windows binaries

pull/3909/head
jsteube 6 months ago
parent 46ce637d3c
commit 4da1d31668

@ -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;

Loading…
Cancel
Save