SAGA: Null terminate string. CID 1003870

This commit is contained in:
Eugene Sandulenko 2013-04-28 23:11:38 +03:00
parent e2cd02bb5e
commit aa8638db6a

View File

@ -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();
}