[Scummvm-cvs-logs] scummvm master -> dd69e8409e5622aa9f00e2f03881800cf7ae7b06
sev-
sev at scummvm.org
Fri May 13 23:50:53 CEST 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
dd69e8409e LURE: Safer string manupulation
Commit: dd69e8409e5622aa9f00e2f03881800cf7ae7b06
https://github.com/scummvm/scummvm/commit/dd69e8409e5622aa9f00e2f03881800cf7ae7b06
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-05-13T23:50:31+02:00
Commit Message:
LURE: Safer string manupulation
Changed paths:
engines/lure/game.cpp
diff --git a/engines/lure/game.cpp b/engines/lure/game.cpp
index 371bcd6..84cc91e 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;
More information about the Scummvm-git-logs
mailing list