aboutsummaryrefslogtreecommitdiff
path: root/engines/touche/detection.cpp
diff options
context:
space:
mode:
authorGregory Montoir2008-12-07 19:15:19 +0000
committerGregory Montoir2008-12-07 19:15:19 +0000
commitf8c12238324325419ed2087cd91a29b101e8fb11 (patch)
treedaf5e5155dddee6fe6fa56d1d88f2cb471514e90 /engines/touche/detection.cpp
parent78fd335a4260a16664083fbf3333b8fba52e75ea (diff)
downloadscummvm-rg350-f8c12238324325419ed2087cd91a29b101e8fb11.tar.gz
scummvm-rg350-f8c12238324325419ed2087cd91a29b101e8fb11.tar.bz2
scummvm-rg350-f8c12238324325419ed2087cd91a29b101e8fb11.zip
fixed readGameStateDescription() len parameter
svn-id: r35282
Diffstat (limited to 'engines/touche/detection.cpp')
-rw-r--r--engines/touche/detection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/touche/detection.cpp b/engines/touche/detection.cpp
index 039df82515..2b9222ebe5 100644
--- a/engines/touche/detection.cpp
+++ b/engines/touche/detection.cpp
@@ -182,8 +182,8 @@ SaveStateList ToucheMetaEngine::listSaves(const char *target) const {
Common::String file = Touche::generateGameStateFileName(target, slot);
Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(file.c_str());
if (in) {
- char description[64] = { 0 };
- Touche::readGameStateDescription(in, description, sizeof(description));
+ char description[64];
+ Touche::readGameStateDescription(in, description, sizeof(description) - 1);
if (description[0]) {
saveList.push_back(SaveStateDescriptor(slot, description));
}