summaryrefslogtreecommitdiffstats
path: root/src/phbf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-10-04 18:09:48 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2014-10-04 18:09:48 +0200
commitc28950032981dafb83ec5c568a16e030c4467226 (patch)
tree05156e7f64df839808af64cd455c8b864a1eda18 /src/phbf.c
parent4c5fcd4164b7fd06eafa54fa44ecfb9fb2d02d00 (diff)
Use fseeko() instead of fseek().
Fix 2GB per file limit on Windows for some file types.
Diffstat (limited to 'src/phbf.c')
-rw-r--r--src/phbf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/phbf.c b/src/phbf.c
index 0276353..058dc08 100644
--- a/src/phbf.c
+++ b/src/phbf.c
@@ -319,7 +319,11 @@ static bf_status_t photorec_bf_pad(struct ph_param *params, file_recovery_t *fil
uint64_t file_size_backup;
nbr=0;
offset_error_tmp=file_recovery->offset_error;
+#ifdef HAVE_FSEEKO
+ if(fseeko(file_recovery->handle, file_recovery->file_size, SEEK_SET) < 0)
+#else
if(fseek(file_recovery->handle, file_recovery->file_size, SEEK_SET) < 0)
+#endif
return BF_ENOENT;
#if 1
if(file_recovery->data_check!=NULL)