diff options
author | Christophe Grenier <[email protected]> | 2018-03-15 10:10:48 +0100 |
---|---|---|
committer | Christophe Grenier <[email protected]> | 2018-03-15 10:10:48 +0100 |
commit | c0e81e1f92005718ad3a8c21bd7d3d8d74b075bb (patch) | |
tree | 0438a2701dfde1629e1430d6ad826e058acacad6 | |
parent | f29f7ab54cbb930dbd551eed92cf78af30f9abf3 (diff) |
PhotoRec: shorten by 1 byte the ptf file signature to avoid a false negative
-rw-r--r-- | src/file_ptf.c | 4 |
1 files 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); } |