summaryrefslogtreecommitdiffstats
path: root/src/file_txt.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-12-22 15:30:51 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2015-12-22 15:30:51 +0100
commit64825cc9e279abe8a62a19b053eff5ebc9ad7da4 (patch)
tree1b4e488ea4aa6309b427d6d59f2499aec9da9eae /src/file_txt.c
parentf032a966f6760ff6b3cd637cfdbcf075a63c6666 (diff)
Fix erronous text file detected as java.
Thanks to Andreas Renberg for reporting the bug
Diffstat (limited to 'src/file_txt.c')
-rw-r--r--src/file_txt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_txt.c b/src/file_txt.c
index b86a0d1..78078ea 100644
--- a/src/file_txt.c
+++ b/src/file_txt.c
@@ -1264,7 +1264,7 @@ static int header_check_txt(const unsigned char *buffer, const unsigned int buff
else
ext="py";
}
- else if(strstr(buffer_lower, "class")!=NULL &&
+ else if(strstr(buffer_lower, "class ")!=NULL &&
(l>=100 || file_recovery->file_stat==NULL))
{
#ifdef DJGPP