diff options
author | Eugene Sandulenko | 2013-04-28 23:07:18 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-04-28 23:59:20 +0300 |
commit | e2cd02bb5ef0742220c50cbbf497e0a1b014f6b9 (patch) | |
tree | f06260531b4e420af233dcb3e897291da71b0ec4 /engines | |
parent | 2a4bf37aab10dbc9d6d36e8e693c80574f60c884 (diff) | |
download | scummvm-rg350-e2cd02bb5ef0742220c50cbbf497e0a1b014f6b9.tar.gz scummvm-rg350-e2cd02bb5ef0742220c50cbbf497e0a1b014f6b9.tar.bz2 scummvm-rg350-e2cd02bb5ef0742220c50cbbf497e0a1b014f6b9.zip |
SAGA: Null terminate string. CID 1003868
Diffstat (limited to 'engines')
-rw-r--r-- | engines/saga/interface.cpp | 2 |
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); |