mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-23 23:19:09 +00:00
Fix fread() on windows when loading the LZMA hcstat
This commit is contained in:
parent
83d5302256
commit
297a64de8b
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user