diff options
author | Einar Johan Trøan Sømåen | 2013-04-17 16:09:35 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-04-17 16:09:35 +0200 |
commit | 3185e9157605d77338b0cde3fcb15703ce0381b5 (patch) | |
tree | acc44603cf8307c105c146a792a2c198377fad76 /engines/wintermute/base/base_game.cpp | |
parent | a69512a0c2cdd9b60a4c9d97470966d1cc36e338 (diff) | |
download | scummvm-rg350-3185e9157605d77338b0cde3fcb15703ce0381b5.tar.gz scummvm-rg350-3185e9157605d77338b0cde3fcb15703ce0381b5.tar.bz2 scummvm-rg350-3185e9157605d77338b0cde3fcb15703ce0381b5.zip |
WINTERMUTE: Use strlcat/strlcpy in BaseGame::setWindowTitle
Diffstat (limited to 'engines/wintermute/base/base_game.cpp')
-rw-r--r-- | engines/wintermute/base/base_game.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp index 94ea36cd06..dcf7568447 100644 --- a/engines/wintermute/base/base_game.cpp +++ b/engines/wintermute/base/base_game.cpp @@ -3402,11 +3402,11 @@ bool BaseGame::getVersion(byte *verMajor, byte *verMinor, byte *extMajor, byte * void BaseGame::setWindowTitle() { if (_renderer) { char title[512]; - strcpy(title, _caption[0]); + Common::strlcpy(title, _caption[0], 512); if (title[0] != '\0') { - strcat(title, " - "); + Common::strlcat(title, " - ", 512); } - strcat(title, "WME Lite"); + Common::strlcat(title, "WME Lite", 512); Utf8String utf8Title; |