Updated places to achFormatHint referencing array size.

This commit is contained in:
Marc-Antoine Lortie
2020-01-23 15:26:49 -05:00
parent 316a8dff4e
commit 770c822621
6 changed files with 11 additions and 6 deletions

View File

@@ -535,7 +535,7 @@ void AssbinImporter::ReadBinaryTexture(IOStream * stream, aiTexture* tex) {
tex->mWidth = Read<unsigned int>(stream);
tex->mHeight = Read<unsigned int>(stream);
stream->Read( tex->achFormatHint, sizeof(char), 4 );
stream->Read( tex->achFormatHint, sizeof(char), HINTMAXTEXTURELEN - 1 );
if(!shortened) {
if (!tex->mHeight) {