mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 08:55:45 +00:00
TONY: Safer string manipulation
This commit is contained in:
parent
b404524599
commit
8f2a0eb662
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user