summaryrefslogtreecommitdiffstats
path: root/src/file_zip.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-05-08 15:05:32 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-05-08 15:05:32 +0200
commit10b1a16e369ce6cb4c48e87367a2b0311e1420f5 (patch)
treea1db2e7e23dd0f3956bd9605a1dd314128755d08 /src/file_zip.c
parenta91738704b52e595dc7f1b6c413717fd6c271022 (diff)
PhotoRec: default to docx for MS Office 2010 documents when the extension can't be determined
Diffstat (limited to 'src/file_zip.c')
-rw-r--r--src/file_zip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file_zip.c b/src/file_zip.c
index 3b72c88..0c38562 100644
--- a/src/file_zip.c
+++ b/src/file_zip.c
@@ -244,6 +244,8 @@ static int zip_parse_file_entry(file_recovery_t *fr, const char **ext, const uns
*ext="xlsx";
else if(strncmp(filename, "ppt/", 4)==0)
*ext="pptx";
+ else
+ *ext="docx";
}
}
if(*ext==NULL)