From 8f2a0eb662d50f441621de58278828ef6fb427d1 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 17 Jun 2016 12:09:20 +0200 Subject: TONY: Safer string manipulation --- engines/tony/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/tony') 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; } -- cgit v1.2.3