projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f76b9d0
)
Fixed snprintf cast warnings
author
Martin Lemay
<mlemay@gosecure.ca>
Sun, 24 Apr 2016 18:29:19 +0000
(14:29 -0400)
committer
Martin Lemay
<mlemay@gosecure.ca>
Sun, 24 Apr 2016 18:29:19 +0000
(14:29 -0400)
src/shared.c
patch
|
blob
|
history
diff --git
a/src/shared.c
b/src/shared.c
index
615a4d2
..
1a86da7
100644
(file)
--- a/
src/shared.c
+++ b/
src/shared.c
@@
-8493,7
+8493,7
@@
void ascii_digest (char *out_buf, uint salt_pos, uint digest_pos)
for (uint i = 0; i < mysalt_len; i++)
{
for (uint i = 0; i < mysalt_len; i++)
{
- snprintf(pstoken_tmp[i], 1, "%02x", pstoken->salt_buf[i]);
+ snprintf((char *)(pstoken_tmp + i), (size_t)2, "%02x", pstoken->salt_buf[i]);
}
snprintf (out_buf, len-1, "%08x%08x%08x%08x%08x:%s",
}
snprintf (out_buf, len-1, "%08x%08x%08x%08x%08x:%s",