summaryrefslogtreecommitdiffstats
path: root/src/filegen.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-02-25 14:04:26 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2016-02-25 14:04:26 +0100
commitfb8c132b70aec83c1a7cefcbe52e1d31ff0b109c (patch)
tree825513d96d3c61a618c072bfb89f6d78569a001a /src/filegen.c
parentcc7f97cd2931bf65f68754031681f1a1e20046fa (diff)
PhotoRec: do not limit .raf filesize for recent version
Diffstat (limited to 'src/filegen.c')
-rw-r--r--src/filegen.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/filegen.c b/src/filegen.c
index ed9eb3e..c7bfe83 100644
--- a/src/filegen.c
+++ b/src/filegen.c
@@ -291,7 +291,13 @@ void file_check_size(file_recovery_t *file_recovery)
file_recovery->file_size=file_recovery->calculated_file_size;
}
-void file_check_size_lax(file_recovery_t *file_recovery)
+void file_check_size_min(file_recovery_t *file_recovery)
+{
+ if(file_recovery->file_size<file_recovery->calculated_file_size)
+ file_recovery->file_size=0;
+}
+
+void file_check_size_max(file_recovery_t *file_recovery)
{
if(file_recovery->file_size > file_recovery->calculated_file_size)
file_recovery->file_size=file_recovery->calculated_file_size;