PhotoRec: define a minimal size for recovered .dat

This commit is contained in:
Christophe Grenier 2014-08-09 09:42:06 +02:00
parent 32e432da48
commit a84642bcde

View file

@ -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;
}