浏览代码

Restrict search for OFF header to first 3 bytes

John Senneker 8 年之前
父节点
当前提交
2ee7991558
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/OFFLoader.cpp

+ 1 - 1
code/OFFLoader.cpp

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