Restrict search for OFF header to first 3 bytes

pull/1423/head
John Senneker 2017-09-06 14:49:25 -04:00 committed by Daniel Hritzkiv
parent a5e8e0b2bd
commit 2ee7991558
No known key found for this signature in database
GPG Key ID: D1D19875679D5CBF
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }