aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-04-28 23:07:18 +0300
committerEugene Sandulenko2013-04-28 23:59:20 +0300
commite2cd02bb5ef0742220c50cbbf497e0a1b014f6b9 (patch)
treef06260531b4e420af233dcb3e897291da71b0ec4
parent2a4bf37aab10dbc9d6d36e8e693c80574f60c884 (diff)
downloadscummvm-rg350-e2cd02bb5ef0742220c50cbbf497e0a1b014f6b9.tar.gz
scummvm-rg350-e2cd02bb5ef0742220c50cbbf497e0a1b014f6b9.tar.bz2
scummvm-rg350-e2cd02bb5ef0742220c50cbbf497e0a1b014f6b9.zip
SAGA: Null terminate string. CID 1003868
-rw-r--r--engines/saga/interface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp
index a7bd7edbe5..6bc63133f2 100644
--- a/engines/saga/interface.cpp
+++ b/engines/saga/interface.cpp
@@ -2420,7 +2420,7 @@ bool Interface::converseAddText(const char *text, int strId, int replyId, byte r
assert(strlen(text) < CONVERSE_MAX_WORK_STRING);
- strncpy(_converseWorkString, text, CONVERSE_MAX_WORK_STRING);
+ Common::strlcpy(_converseWorkString, text, CONVERSE_MAX_WORK_STRING);
while (1) {
len = strlen(_converseWorkString);