diff options
author | Torbjörn Andersson | 2015-06-30 06:15:28 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2015-06-30 06:16:10 +0200 |
commit | 0a93ef16a01555a18287b88ee188aabfa251de28 (patch) | |
tree | 35c4bec668528efd52dce3861bdfcc054ee4e6ee /engines/sherlock | |
parent | 927ff67ce6c7eb026c3cd6e85b628eebf8511e2b (diff) | |
download | scummvm-rg350-0a93ef16a01555a18287b88ee188aabfa251de28.tar.gz scummvm-rg350-0a93ef16a01555a18287b88ee188aabfa251de28.tar.bz2 scummvm-rg350-0a93ef16a01555a18287b88ee188aabfa251de28.zip |
SHERLOCK: Fix out-of-bounds access of JOURNAL_COMMAND (CID 1308104)
Maybe we should be using ARRAYSIZE() instead, though.
Diffstat (limited to 'engines/sherlock')
-rw-r--r-- | engines/sherlock/tattoo/tattoo_journal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/tattoo_journal.cpp b/engines/sherlock/tattoo/tattoo_journal.cpp index ac8d9cdecc..c4022e9cef 100644 --- a/engines/sherlock/tattoo/tattoo_journal.cpp +++ b/engines/sherlock/tattoo/tattoo_journal.cpp @@ -701,7 +701,7 @@ void TattooJournal::disableControls() { // Print the Journal commands int xp = r.left + r.width() / 6; - for (int idx = 0; idx < 3; ++idx) { + for (int idx = 0; idx < 2; ++idx) { screen.gPrint(Common::Point(xp - screen.stringWidth(JOURNAL_COMMANDS[idx]) / 2, r.top + 5), INFO_BOTTOM, "%s", JOURNAL_COMMANDS[idx]); |