aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-06-17 12:09:20 +0200
committerEugene Sandulenko2016-06-17 12:10:11 +0200
commit8f2a0eb662d50f441621de58278828ef6fb427d1 (patch)
tree5cd60d2e9f630b342e0aced7affe6f7fd257edc7
parentb40452459942ba900e34a3858d5bd33ba33b1c6c (diff)
downloadscummvm-rg350-8f2a0eb662d50f441621de58278828ef6fb427d1.tar.gz
scummvm-rg350-8f2a0eb662d50f441621de58278828ef6fb427d1.tar.bz2
scummvm-rg350-8f2a0eb662d50f441621de58278828ef6fb427d1.zip
TONY: Safer string manipulation
-rw-r--r--engines/tony/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tony/game.cpp b/engines/tony/game.cpp
index dbb8ebc29b..7b9cb4c6ca 100644
--- a/engines/tony/game.cpp
+++ b/engines/tony/game.cpp
@@ -1150,7 +1150,7 @@ void RMOptionScreen::doFrame(CORO_PARAM, RMInput *input) {
// Turn on edit mode
_bEditSaveName = true;
_nEditPos = _ctx->i;
- strcpy(_editName, _curThumbName[_ctx->i].c_str());
+ Common::strlcpy(_editName, _curThumbName[_ctx->i].c_str(), sizeof(_editName));
_ctx->bRefresh = true;
}