Re-fix ascii_digest
authorGabriele 'matrix' Gristina <gm4tr1x@users.noreply.github.com>
Sun, 17 Jan 2016 21:10:19 +0000 (22:10 +0100)
committerGabriele 'matrix' Gristina <gm4tr1x@users.noreply.github.com>
Sun, 17 Jan 2016 21:10:19 +0000 (22:10 +0100)
src/shared.c

index 9af47ba..a508d75 100644 (file)
@@ -7109,9 +7109,9 @@ void ascii_digest (char out_buf[4096], uint salt_pos, uint digest_pos)
   }
   else if (hash_mode == 8300)
   {
-    char digest_buf_c[56] = { 0 };
+    char digest_buf_c[34] = { 0 };
 
-    base32_encode (int_to_itoa32, (const u8 *) digest_buf, 32, (u8 *) digest_buf_c);
+    base32_encode (int_to_itoa32, (const u8 *) digest_buf, 20, (u8 *) digest_buf_c);
 
     digest_buf_c[32] = 0;