summaryrefslogtreecommitdiffstats
path: root/src/file_orf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-03-23 14:55:03 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2013-03-23 14:55:03 +0100
commit5f2629fe07e6e795fa9494498359e8a26de55f15 (patch)
tree4520b56da174fe8105e8170dbb7a083d3d918405 /src/file_orf.c
parenta3ed1f48d1b6ddc808b8d62facd9dfcc2b242175 (diff)
PhotoRec: better signature for .orf detection
Diffstat (limited to 'src/file_orf.c')
-rw-r--r--src/file_orf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_orf.c b/src/file_orf.c
index 0591622..211a1df 100644
--- a/src/file_orf.c
+++ b/src/file_orf.c
@@ -61,7 +61,7 @@ static int header_check_orf_IIRO(const unsigned char *buffer, const unsigned int
static void register_header_check_orf(file_stat_t *file_stat)
{
- static const unsigned char orf_header_IIRS[4]= { 0x49, 0x49, 0x52, 0x53};
+ static const unsigned char orf_header_IIRS[8]= { 0x49, 0x49, 0x52, 0x53, 0x08, 0x00, 0x00, 0x00};
static const unsigned char orf_header_IIRO[8]= { 'I', 'I', 'R', 'O', 0x08, 0x00, 0x00, 0x00};
register_header_check(0, orf_header_IIRS, sizeof(orf_header_IIRS), &header_check_orf_IIRS, file_stat);
register_header_check(0, orf_header_IIRO, sizeof(orf_header_IIRO), &header_check_orf_IIRO, file_stat);