summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-11-22 08:28:10 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2010-11-22 08:28:10 +0100
commit2dac2fd74290322f076a42e2d962bd58a1b75bba (patch)
tree800fa365c4f34a5b42c329ce4747f21430bdfd21 /src
parente8f20a04c889277074c69e56f5ec6fc882f179ac (diff)
PhotoRec: fix template
Diffstat (limited to 'src')
-rw-r--r--src/file_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_template.c b/src/file_template.c
index cff30cd..97abab5 100644
--- a/src/file_template.c
+++ b/src/file_template.c
@@ -55,7 +55,7 @@ static void register_header_check_EXTENSION(file_stat_t *file_stat)
static int header_check_EXTENSION(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new)
{
- if(memcmp(buffer, EXTENSION_header, sizeof(EXTENSION_header))==0)
+ if(memcmp(&buffer[HEADER_LOC], EXTENSION_header, sizeof(EXTENSION_header))==0)
{
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_EXTENSION.extension;