aboutsummaryrefslogtreecommitdiff
path: root/engines/touche/detection.cpp
diff options
context:
space:
mode:
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));
}