Restrict search for OFF header to first 3 bytes
parent
a5e8e0b2bd
commit
2ee7991558
|
@ -94,7 +94,7 @@ bool OFFImporter::CanRead( const std::string& pFile, IOSystem* pIOHandler, bool
|
||||||
{
|
{
|
||||||
if (!pIOHandler)return true;
|
if (!pIOHandler)return true;
|
||||||
const char* tokens[] = {"off"};
|
const char* tokens[] = {"off"};
|
||||||
return SearchFileHeaderForToken(pIOHandler,pFile,tokens,1);
|
return SearchFileHeaderForToken(pIOHandler,pFile,tokens,1,3);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue