aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-04-28 23:11:38 +0300
committerEugene Sandulenko2013-04-28 23:59:20 +0300
commitaa8638db6af81b1508c41700899553f01ed9fa1f (patch)
tree6683b7c1ea5483218419253bed56a6af70d39c0c
parente2cd02bb5ef0742220c50cbbf497e0a1b014f6b9 (diff)
downloadscummvm-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.cpp2
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();
}