diff --git a/code/MDL/HalfLife/HL1MDLLoader.cpp b/code/MDL/HalfLife/HL1MDLLoader.cpp index c518f2230..1300d095d 100644 --- a/code/MDL/HalfLife/HL1MDLLoader.cpp +++ b/code/MDL/HalfLife/HL1MDLLoader.cpp @@ -348,6 +348,7 @@ void HL1MDLLoader::read_texture(const Texture_HL1 *ptexture, pResult->mWidth = outwidth; pResult->mHeight = outheight; strncpy(pResult->achFormatHint, "bgra8888", 8); + pResult->achFormatHint[8] = '\0'; aiTexel *out = pResult->pcData = new aiTexel[outwidth * outheight];