1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-16 11:48:15 +00:00

Do not use sizeof() on a pointer address

This commit is contained in:
jsteube 2016-11-03 00:07:01 +01:00
parent 96e963b0d0
commit 1cc3482eb4

View File

@ -495,11 +495,11 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
return -1; return -1;
} }
EVENT_DATA (EVENT_HASHLIST_COUNT_LINES_PRE, hashfile, sizeof (hashfile)); EVENT_DATA (EVENT_HASHLIST_COUNT_LINES_PRE, hashfile, strlen (hashfile));
hashes_avail = count_lines (hashcat_ctx, fp); hashes_avail = count_lines (hashcat_ctx, fp);
EVENT_DATA (EVENT_HASHLIST_COUNT_LINES_POST, hashfile, sizeof (hashfile)); EVENT_DATA (EVENT_HASHLIST_COUNT_LINES_POST, hashfile, strlen (hashfile));
rewind (fp); rewind (fp);
@ -940,7 +940,7 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
hashlist_parse.hashes_cnt = hashes_cnt; hashlist_parse.hashes_cnt = hashes_cnt;
hashlist_parse.hashes_avail = hashes_avail; hashlist_parse.hashes_avail = hashes_avail;
EVENT_DATA (EVENT_HASHLIST_PARSE_HASH, &hashlist_parse, sizeof (hashlist_parse)); EVENT_DATA (EVENT_HASHLIST_PARSE_HASH, &hashlist_parse, sizeof (hashlist_parse_t));
} }
hashlist_parse_t hashlist_parse; hashlist_parse_t hashlist_parse;
@ -948,7 +948,7 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
hashlist_parse.hashes_cnt = hashes_cnt; hashlist_parse.hashes_cnt = hashes_cnt;
hashlist_parse.hashes_avail = hashes_avail; hashlist_parse.hashes_avail = hashes_avail;
EVENT_DATA (EVENT_HASHLIST_PARSE_HASH, &hashlist_parse, sizeof (hashlist_parse)); EVENT_DATA (EVENT_HASHLIST_PARSE_HASH, &hashlist_parse, sizeof (hashlist_parse_t));
hcfree (line_buf); hcfree (line_buf);