Fix unterminated buffer in a certain error messahe produced by the LWO loader.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@619 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2010-03-18 17:25:11 +00:00
parent 50264941dd
commit 255e68aafc
1 changed files with 1 additions and 0 deletions

View File

@ -170,6 +170,7 @@ void LWOImporter::InternReadFile( const std::string& pFile,
szBuff[1] = (char)(fileType >> 16u); szBuff[1] = (char)(fileType >> 16u);
szBuff[2] = (char)(fileType >> 8u); szBuff[2] = (char)(fileType >> 8u);
szBuff[3] = (char)(fileType); szBuff[3] = (char)(fileType);
szBuff[4] = '\0';
throw DeadlyImportError(std::string("Unknown LWO sub format: ") + szBuff); throw DeadlyImportError(std::string("Unknown LWO sub format: ") + szBuff);
} }