Fix fread() on windows when loading the LZMA hcstat

This commit is contained in:
jsteube
2017-06-24 11:00:43 +02:00
parent 83d5302256
commit 297a64de8b

View File

@@ -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)
{