diff options
Diffstat (limited to 'engines/kyra/text_lok.cpp')
-rw-r--r-- | engines/kyra/text_lok.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/kyra/text_lok.cpp b/engines/kyra/text_lok.cpp index 266553cdea..874ce387e9 100644 --- a/engines/kyra/text_lok.cpp +++ b/engines/kyra/text_lok.cpp @@ -349,6 +349,7 @@ void KyraEngine_LoK::drawSentenceCommand(const char *sentence, int color) { void KyraEngine_LoK::updateSentenceCommand(const char *str1, const char *str2, int color) { char sentenceCommand[500]; strncpy(sentenceCommand, str1, 500); + sentenceCommand[499] = 0; if (str2) strncat(sentenceCommand, str2, 500 - strlen(sentenceCommand)); |