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
+2 -2
View File
@@ -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);