summaryrefslogtreecommitdiffstats
path: root/src/file_zip.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-02-24 19:59:18 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2012-02-24 19:59:18 +0100
commit930e9aae139aa30d899ca55b950be07bb68df8d9 (patch)
tree2e33fff1ec65dc60d7e08b17c507090a002f4112 /src/file_zip.c
parentb1da8a3fcc5153708e47b85c9600307292d363ab (diff)
PhotoRec: improve MinManager .mmap detection
Diffstat (limited to 'src/file_zip.c')
-rw-r--r--src/file_zip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_zip.c b/src/file_zip.c
index 3faa69d..3b72c88 100644
--- a/src/file_zip.c
+++ b/src/file_zip.c
@@ -230,8 +230,6 @@ static int zip_parse_file_entry(file_recovery_t *fr, const char **ext, const uns
msoffice=1;
else if(len==4 && memcmp(filename, "Home", 4)==0)
sh3d=1;
- else if(len==30 && memcmp(filename, "xsd/MindManagerApplication.xsd", 30)==0)
- *ext="mmap";
}
else if(file_nbr==1 && sh3d==1)
{
@@ -254,6 +252,8 @@ static int zip_parse_file_entry(file_recovery_t *fr, const char **ext, const uns
*ext="jar";
else if(len==15 && strcasecmp(filename, "chrome.manifest")==0)
*ext="xpi";
+ else if(len==30 && memcmp(filename, "xsd/MindManagerApplication.xsd", 30)==0)
+ *ext="mmap";
}
free(filename);
}