Skip to content

Commit

Permalink
LURE: Safer string manupulation
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed May 13, 2016
1 parent dd2e7be commit dd69e84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engines/lure/game.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit dd69e84

Please sign in to comment.