summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-09-25 20:37:05 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-09-25 20:37:05 +0200
commit3f3da1a06c1c3bdc28efe6f66baaf822b5b0557e (patch)
tree6434b218a204b4048f007ea0c90105bb88e06518 /src
parent7206038ec535e2c09b113d592c73301bb696c9aa (diff)
PhotoRec: doesn't search for text while recovering .doc
Diffstat (limited to 'src')
-rw-r--r--src/file_txt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/file_txt.c b/src/file_txt.c
index 814816b..d642ada 100644
--- a/src/file_txt.c
+++ b/src/file_txt.c
@@ -1028,8 +1028,7 @@ static int header_check_txt(const unsigned char *buffer, const unsigned int buff
{
if(file_recovery->file_stat->file_hint == &file_hint_doc)
{
- if(strstr(file_recovery->filename,".doc")==NULL)
- return 0;
+ return 0;
}
else if(file_recovery->file_stat->file_hint == &file_hint_fasttxt ||
file_recovery->file_stat->file_hint == &file_hint_txt)