STARTREK: Missing null-terminator with animations

This commit is contained in:
Matthew Stewart 2018-06-29 15:37:16 -04:00 committed by Eugene Sandulenko
parent a636aacf51
commit 296bad07b8

View File

@ -607,9 +607,10 @@ void StarTrekEngine::drawActorToScreen(Actor *actor, const Common::String &_anim
actor->animFile->seek(16, SEEK_SET);
actor->frameToStartNextAnim = actor->animFile->readUint16() + _frameIndex;
char firstFrameFilename[10];
char firstFrameFilename[11];
actor->animFile->seek(0, SEEK_SET);
actor->animFile->read(firstFrameFilename, 10);
firstFrameFilename[10] = '\0';
Sprite *sprite = &actor->sprite;
if (addSprite)