From 297a64de8bc296dab1510575389a057aa8d24da2 Mon Sep 17 00:00:00 2001 From: jsteube Date: Sat, 24 Jun 2017 11:00:43 +0200 Subject: [PATCH] Fix fread() on windows when loading the LZMA hcstat --- src/mpsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpsp.c b/src/mpsp.c index e23f26c84..6a31a5e8c 100644 --- a/src/mpsp.c +++ b/src/mpsp.c @@ -700,7 +700,7 @@ static int sp_setup_tbl (hashcat_ctx_t *hashcat_ctx) u8 *inbuf = (u8 *) hcmalloc (s.st_size); - SizeT inlen = (SizeT) fread (inbuf, 1, SP_FILESZ, fd); + SizeT inlen = (SizeT) fread (inbuf, 1, s.st_size, fd); if (inlen != (SizeT) s.st_size) {