1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-12 17:48:14 +00:00

replace index with strchr

The former is deprecated and unavailable if POSIX_C_SOUCE==200811L.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2023-11-20 18:25:11 -08:00
parent fafb277e07
commit 1685f11b87

View File

@ -7472,11 +7472,11 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
#if defined (__APPLE__)
char *start130 = index (device_param->opencl_driver_version, '(');
char *stop130 = index (device_param->opencl_driver_version, ')');
char *start130 = strchr (device_param->opencl_driver_version, '(');
char *stop130 = strchr (device_param->opencl_driver_version, ')');
char *start131 = index (opencl_platform_version, '(');
char *stop131 = index (opencl_platform_version, ')');
char *start131 = strchr (opencl_platform_version, '(');
char *stop131 = strchr (opencl_platform_version, ')');
// either none or one of these have a date string