aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek
diff options
context:
space:
mode:
Diffstat (limited to 'engines/startrek')
-rw-r--r--engines/startrek/startrek.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/startrek/startrek.cpp b/engines/startrek/startrek.cpp
index 48f8879c99..d829dd98c9 100644
--- a/engines/startrek/startrek.cpp
+++ b/engines/startrek/startrek.cpp
@@ -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)