mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
AGI: Fix strncpy usage
This commit is contained in:
parent
50f4031234
commit
3abe41aa1b
@ -889,7 +889,7 @@ void TextMgr::promptCommandWindow(bool recallLastCommand, uint16 newKey) {
|
||||
if (_systemUI->askForCommand(commandText)) {
|
||||
if (commandText.size()) {
|
||||
// Something actually was entered?
|
||||
strncpy((char *)&_prompt, commandText.c_str(), sizeof(_prompt));
|
||||
Common::strcpy_s((char *)_prompt, sizeof(_prompt), commandText.c_str());
|
||||
promptRememberForAutoComplete(true);
|
||||
memcpy(&_promptPrevious, &_prompt, sizeof(_prompt));
|
||||
// parse text
|
||||
|
Loading…
Reference in New Issue
Block a user