1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 22:58:30 +00:00

Fix compiler warnings for -m 30xxx with GCC 11

This commit is contained in:
jsteube 2022-07-13 05:44:42 +00:00
parent 599f7eedc0
commit 34c539355b
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
u8 *out_buf = (u8 *) line_buf;
int out_len = snprintf((char *)out_buf, 4, "md5$");
int out_len = snprintf ((char *) out_buf, line_size, "md5$");
out_len += generic_salt_encode (hashconfig, (const u8 *) salt->salt_buf, (const int) salt->salt_len, out_buf + out_len);

View File

@ -177,7 +177,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
u8 *out_buf = (u8 *) line_buf;
int out_len = snprintf((char *)out_buf, 7, "sha256$");
int out_len = snprintf ((char *) out_buf, line_size, "sha256$");
out_len += generic_salt_encode (hashconfig, (const u8 *) salt->salt_buf, (const int) salt->salt_len, out_buf + out_len);