diff options
author | Eugene Sandulenko | 2013-04-28 23:11:38 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-04-28 23:59:20 +0300 |
commit | aa8638db6af81b1508c41700899553f01ed9fa1f (patch) | |
tree | 6683b7c1ea5483218419253bed56a6af70d39c0c | |
parent | e2cd02bb5ef0742220c50cbbf497e0a1b014f6b9 (diff) | |
download | scummvm-rg350-aa8638db6af81b1508c41700899553f01ed9fa1f.tar.gz scummvm-rg350-aa8638db6af81b1508c41700899553f01ed9fa1f.tar.bz2 scummvm-rg350-aa8638db6af81b1508c41700899553f01ed9fa1f.zip |
SAGA: Null terminate string. CID 1003870
-rw-r--r-- | engines/saga/interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index 6bc63133f2..b105e34487 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -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(); } |