Restrict search for OFF header to first 3 bytes

This commit is contained in:
John Senneker
2017-09-06 14:49:25 -04:00
committed by Daniel Hritzkiv
parent a5e8e0b2bd
commit 2ee7991558

View File

@@ -94,7 +94,7 @@ bool OFFImporter::CanRead( const std::string& pFile, IOSystem* pIOHandler, bool
{
if (!pIOHandler)return true;
const char* tokens[] = {"off"};
return SearchFileHeaderForToken(pIOHandler,pFile,tokens,1);
return SearchFileHeaderForToken(pIOHandler,pFile,tokens,1,3);
}
return false;
}