Fix erronous text file detected as java.

Thanks to Andreas Renberg for reporting the bug
This commit is contained in:
Christophe Grenier 2015-12-22 15:30:51 +01:00
parent f032a966f6
commit 64825cc9e2

View file

@ -1264,7 +1264,7 @@ static int header_check_txt(const unsigned char *buffer, const unsigned int buff
else else
ext="py"; ext="py";
} }
else if(strstr(buffer_lower, "class")!=NULL && else if(strstr(buffer_lower, "class ")!=NULL &&
(l>=100 || file_recovery->file_stat==NULL)) (l>=100 || file_recovery->file_stat==NULL))
{ {
#ifdef DJGPP #ifdef DJGPP