[Scummvm-git-logs] scummvm master -> b03bcd1f8505b5b62404d1ec71b5bfdb6e9fc268
athrxx
athrxx at scummvm.org
Thu Apr 22 21:16:25 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b03bcd1f85 KYRA: (HOF/MR) - fix broken save name input dialog
Commit: b03bcd1f8505b5b62404d1ec71b5bfdb6e9fc268
https://github.com/scummvm/scummvm/commit/b03bcd1f8505b5b62404d1ec71b5bfdb6e9fc268
Author: athrxx (athrxx at scummvm.org)
Date: 2021-04-22T23:10:46+02:00
Commit Message:
KYRA: (HOF/MR) - fix broken save name input dialog
(regression from 280f8324)
Changed paths:
engines/kyra/gui/gui_v2.cpp
diff --git a/engines/kyra/gui/gui_v2.cpp b/engines/kyra/gui/gui_v2.cpp
index 608eabf66f..371892f965 100644
--- a/engines/kyra/gui/gui_v2.cpp
+++ b/engines/kyra/gui/gui_v2.cpp
@@ -644,7 +644,7 @@ int GUI_v2::clickSaveSlot(Button *caller) {
return 0;
} else {
_saveSlot = item.saveSlot;
- strcpy(_saveDescription, getTableString(item.itemId).c_str());
+ Common::strlcpy(_saveDescription, item.itemString.c_str(), sizeof(_saveDescription));
}
} else if (item.saveSlot == -2) {
_saveSlot = getNextSavegameSlot();
More information about the Scummvm-git-logs
mailing list