our usage of strtok_r () was not totally correct (but almost)

pull/1092/head
philsmd 7 years ago
parent afa3326330
commit a82f6fb77c
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF

@ -63,7 +63,7 @@ int set_cpu_affinity (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx)
char *devices = hcstrdup (user_options->cpu_affinity);
char *saveptr = NULL;
char *saveptr;
char *next = strtok_r (devices, ",", &saveptr);

@ -5112,7 +5112,7 @@ int ikepsk_md5_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE
size_t in_len[9] = { 0 };
char *saveptr = NULL;
char *saveptr;
in_off[0] = (u8 *) strtok_r ((char *) input_buf, ":", &saveptr);
@ -5198,7 +5198,7 @@ int ikepsk_sha1_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYB
size_t in_len[9] = { 0 };
char *saveptr = NULL;
char *saveptr;
in_off[0] = (u8 *) strtok_r ((char *) input_buf, ":", &saveptr);
@ -22507,7 +22507,7 @@ int hashconfig_general_defaults (hashcat_ctx_t *hashcat_ctx)
char *keyfiles = hcstrdup (tcvc_keyfiles);
char *saveptr = NULL;
char *saveptr;
char *keyfile = strtok_r (keyfiles, ",", &saveptr);

@ -180,7 +180,7 @@ static int setup_opencl_platforms_filter (hashcat_ctx_t *hashcat_ctx, const char
{
char *platforms = hcstrdup (opencl_platforms);
char *saveptr = NULL;
char *saveptr;
char *next = strtok_r (platforms, ",", &saveptr);
@ -221,7 +221,7 @@ static int setup_devices_filter (hashcat_ctx_t *hashcat_ctx, const char *opencl_
{
char *devices = hcstrdup (opencl_devices);
char *saveptr = NULL;
char *saveptr;
char *next = strtok_r (devices, ",", &saveptr);
@ -262,7 +262,7 @@ static int setup_device_types_filter (hashcat_ctx_t *hashcat_ctx, const char *op
{
char *device_types = hcstrdup (opencl_device_types);
char *saveptr = NULL;
char *saveptr;
char *next = strtok_r (device_types, ",", &saveptr);

@ -119,7 +119,7 @@ int tuning_db_init (hashcat_ctx_t *hashcat_ctx)
int token_cnt = 0;
char *saveptr = NULL;
char *saveptr;
char *next = strtok_r (line_buf, "\t ", &saveptr);

Loading…
Cancel
Save