mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 16:26:53 +00:00
SAGA: Null terminate string. CID 1003870
This commit is contained in:
parent
e2cd02bb5e
commit
aa8638db6a
@ -723,7 +723,7 @@ void Interface::setStatusText(const char *text, int statusColor) {
|
||||
if (_vm->_render->getFlags() & RF_MAP || _vm->_interface->getMode() == kPanelPlacard)
|
||||
return;
|
||||
|
||||
strncpy(_statusText, text, STATUS_TEXT_LEN);
|
||||
Common::strlcpy(_statusText, text, STATUS_TEXT_LEN);
|
||||
_statusOnceColor = statusColor;
|
||||
drawStatusBar();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user