aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-13 23:50:14 +0200
committerEugene Sandulenko2016-05-13 23:50:31 +0200
commitdd69e8409e5622aa9f00e2f03881800cf7ae7b06 (patch)
treee6c791d2c8530ca4852e612991e35ad00aab7bbe /engines/lure
parentdd2e7be0a601095ffebbfabe8b140edbdb58a3c2 (diff)
downloadscummvm-rg350-dd69e8409e5622aa9f00e2f03881800cf7ae7b06.tar.gz
scummvm-rg350-dd69e8409e5622aa9f00e2f03881800cf7ae7b06.tar.bz2
scummvm-rg350-dd69e8409e5622aa9f00e2f03881800cf7ae7b06.zip
LURE: Safer string manupulation
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/game.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lure/game.cpp b/engines/lure/game.cpp
index 371bcd6ed6..84cc91ec9a 100644
--- a/engines/lure/game.cpp
+++ b/engines/lure/game.cpp
@@ -762,11 +762,11 @@ bool Game::GetTellActions() {
// Second parameter
action = (Action) commands[_numTellCommands * 3];
if (action == ASK)
- strcat(statusLine, stringList.getString(S_FOR));
+ Common::strlcat(statusLine, stringList.getString(S_FOR), MAX_DESC_SIZE);
else if (action == GIVE)
- strcat(statusLine, stringList.getString(S_TO));
+ Common::strlcat(statusLine, stringList.getString(S_TO), MAX_DESC_SIZE);
else if (action == USE)
- strcat(statusLine, stringList.getString(S_ON));
+ Common::strlcat(statusLine, stringList.getString(S_ON), MAX_DESC_SIZE);
else {
// All other commads don't need a second parameter
++paramIndex;