aboutsummaryrefslogtreecommitdiff
path: root/engines/made
diff options
context:
space:
mode:
authorEugene Sandulenko2013-04-28 23:03:03 +0300
committerEugene Sandulenko2013-04-28 23:59:20 +0300
commite37bcb88842583fe696925b3e302bf2e329b228c (patch)
tree74b39e98b4fd70ef04f82e02ba532b767ca805c1 /engines/made
parentd0697addab1e63348ea03f05588f422c6bb10bb2 (diff)
downloadscummvm-rg350-e37bcb88842583fe696925b3e302bf2e329b228c.tar.gz
scummvm-rg350-e37bcb88842583fe696925b3e302bf2e329b228c.tar.bz2
scummvm-rg350-e37bcb88842583fe696925b3e302bf2e329b228c.zip
MADE: Null terminate string. CID 1003874
Diffstat (limited to 'engines/made')
-rw-r--r--engines/made/database.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/made/database.cpp b/engines/made/database.cpp
index 2b87f97392..bf47164e8f 100644
--- a/engines/made/database.cpp
+++ b/engines/made/database.cpp
@@ -694,7 +694,7 @@ int16 GameDatabaseV3::savegame(const char *filename, const char *description, in
warning("Can't create file '%s', game not saved", filename);
return 6;
}
- strncpy(desc, description, 64);
+ Common::strlcpy(desc, description, 64);
out->writeUint32BE(MKTAG('S','G','A','M'));
out->writeUint32LE(size);
out->writeUint16LE(version);