summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-09-17 20:50:08 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-09-17 20:50:08 +0200
commit82fd6ee34ed02345a2c25b9c3615888e5c72cd67 (patch)
treefa296a1b6b877c9adc7552ce4f709d9aa7cf4386
parent3b7cd5c6d38a1c683629bd6e179b94e7fa4e4169 (diff)
PhotoRec: fix always false false check for .raf recovery filesize check
-rw-r--r--src/file_raf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_raf.c b/src/file_raf.c
index 86d042d..dbae6b6 100644
--- a/src/file_raf.c
+++ b/src/file_raf.c
@@ -84,7 +84,7 @@ static int header_check_raf(const unsigned char *buffer, const unsigned int buff
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_raf.extension;
file_recovery_new->calculated_file_size=size;
- if(raf->dir_version[0]=='0' && raf->dir_version[0]=='1')
+ if(raf->dir_version[0]=='0' && raf->dir_version[1]=='1')
{
file_recovery_new->data_check=&data_check_size;
file_recovery_new->file_check=&file_check_size;