Added missing null terminator.

pull/2838/head
Marc-Antoine Lortie 2019-12-17 16:16:18 -05:00
parent a45e13b183
commit e85776aaab
1 changed files with 1 additions and 0 deletions

View File

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