From eff04d163328df528b651498629bd065b0ad2455 Mon Sep 17 00:00:00 2001 From: neheb Date: Mon, 28 Nov 2016 16:50:27 -0800 Subject: [PATCH] Change fseek and ftell to o variants Standard way to do 64-bit file sizes --- src/outfile_check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/outfile_check.c b/src/outfile_check.c index 8027b7311..76f0ea247 100644 --- a/src/outfile_check.c +++ b/src/outfile_check.c @@ -138,7 +138,7 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx) out_info[j].seek = 0; } - fseek (fp, out_info[j].seek, SEEK_SET); + fseeko (fp, out_info[j].seek, SEEK_SET); char *line_buf = (char *) hcmalloc (HCBUFSIZ_LARGE); @@ -278,7 +278,7 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx) hcfree (line_buf); - out_info[j].seek = ftell (fp); + out_info[j].seek = ftello (fp); //hc_thread_mutex_unlock (status_ctx->mux_display);