From a84642bcdeb2c2fe112b932985b3d74dc84d8197 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sat, 9 Aug 2014 09:42:06 +0200 Subject: [PATCH] PhotoRec: define a minimal size for recovered .dat --- src/file_dat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/file_dat.c b/src/file_dat.c index 3737013b..71efab54 100644 --- a/src/file_dat.c +++ b/src/file_dat.c @@ -46,6 +46,7 @@ static int header_check_dat(const unsigned char *buffer, const unsigned int buff { reset_file_recovery(file_recovery_new); file_recovery_new->extension=file_hint_dat.extension; + file_recovery_new->min_filesize=8; return 1; } @@ -67,6 +68,7 @@ static int header_check_dat_history(const unsigned char *buffer, const unsigned { reset_file_recovery(file_recovery_new); file_recovery_new->extension=file_hint_dat.extension; + file_recovery_new->min_filesize=8; return 1; }