aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-31 13:17:37 +0200
committerEugene Sandulenko2016-05-31 17:12:18 +0200
commit678c5eadfa48ebd5079db93d9980cbb67cc39b89 (patch)
treefb27c9b81fef618d83832215b20e2b3c67b61156 /engines/saga
parent8e0447e9262aada3bc0753b3ce1707dccf3949ab (diff)
downloadscummvm-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.cpp2
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