1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-12 16:51:00 +00:00

Change fseek and ftell to o variants

Standard way to do 64-bit file sizes
This commit is contained in:
neheb 2016-11-28 16:50:27 -08:00 committed by GitHub
parent ee7bd18474
commit eff04d1633

View File

@ -138,7 +138,7 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx)
out_info[j].seek = 0; 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); char *line_buf = (char *) hcmalloc (HCBUFSIZ_LARGE);
@ -278,7 +278,7 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx)
hcfree (line_buf); hcfree (line_buf);
out_info[j].seek = ftell (fp); out_info[j].seek = ftello (fp);
//hc_thread_mutex_unlock (status_ctx->mux_display); //hc_thread_mutex_unlock (status_ctx->mux_display);