diff options
author | Eugene Sandulenko | 2016-05-31 13:17:37 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-31 17:12:18 +0200 |
commit | 678c5eadfa48ebd5079db93d9980cbb67cc39b89 (patch) | |
tree | fb27c9b81fef618d83832215b20e2b3c67b61156 /engines/saga | |
parent | 8e0447e9262aada3bc0753b3ce1707dccf3949ab (diff) | |
download | scummvm-rg350-678c5eadfa48ebd5079db93d9980cbb67cc39b89.tar.gz scummvm-rg350-678c5eadfa48ebd5079db93d9980cbb67cc39b89.tar.bz2 scummvm-rg350-678c5eadfa48ebd5079db93d9980cbb67cc39b89.zip |
SAGA: Safer string manipulation
Diffstat (limited to 'engines/saga')
-rw-r--r-- | engines/saga/saveload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/saga/saveload.cpp b/engines/saga/saveload.cpp index 2d798bb0d6..1a131bf5cc 100644 --- a/engines/saga/saveload.cpp +++ b/engines/saga/saveload.cpp @@ -185,7 +185,7 @@ void SagaEngine::save(const char *fileName, const char *saveName) { // Original game title memset(title, 0, TITLESIZE); - strncpy(title, _gameTitle.c_str(), TITLESIZE); + Common::strlcpy(title, _gameTitle.c_str(), TITLESIZE); out->write(title, TITLESIZE); // Thumbnail |