summaryrefslogtreecommitdiffstats
path: root/src/file_indd.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/file_indd.c
parent4c5fcd4164b7fd06eafa54fa44ecfb9fb2d02d00 (diff)
Use fseeko() instead of fseek().
Fix 2GB per file limit on Windows for some file types.
Diffstat (limited to 'src/file_indd.c')
-rw-r--r--src/file_indd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_indd.c b/src/file_indd.c
index dbf8945..12c88c0 100644
--- a/src/file_indd.c
+++ b/src/file_indd.c
@@ -95,7 +95,11 @@ static void file_check_indd(file_recovery_t *file_recovery)
#ifdef DEBUG_INDD
log_info("file_check_indd offset=%llu (0x%llx)\n", (long long unsigned)offset, (long long unsigned)offset);
#endif
+#ifdef HAVE_FSEEKO
+ if(fseeko(file_recovery->handle, offset, SEEK_SET) < 0)
+#else
if(fseek(file_recovery->handle, offset, SEEK_SET) < 0)
+#endif
{
file_recovery->file_size=0;
return ;