PhotoRec: shorten by 1 byte the ptf file signature to avoid a false negative

This commit is contained in:
Christophe Grenier 2018-03-15 10:10:48 +01:00
parent f29f7ab54c
commit c0e81e1f92

View File

@ -62,10 +62,10 @@ static int header_check_ptf(const unsigned char *buffer, const unsigned int buff
static void register_header_check_ptf(file_stat_t *file_stat)
{
static const unsigned char ptf_header[19]= {
static const unsigned char ptf_header[18]= {
0x03, '0' , '0' , '1' , '0' , '1' , '1' , '1' ,
'1', '0' , '0' , '1' , '0' , '1' , '0' , '1' ,
'1', 0x00, 0x01
'1', 0x00
};
register_header_check(0, ptf_header, sizeof(ptf_header), &header_check_ptf, file_stat);
}