From c0e81e1f92005718ad3a8c21bd7d3d8d74b075bb Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Thu, 15 Mar 2018 10:10:48 +0100 Subject: [PATCH] PhotoRec: shorten by 1 byte the ptf file signature to avoid a false negative --- src/file_ptf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/file_ptf.c b/src/file_ptf.c index 4b67da5a..358fc48b 100644 --- a/src/file_ptf.c +++ b/src/file_ptf.c @@ -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); }