[Scummvm-git-logs] scummvm master -> f5d57583275e5b9698e7b0dd0e53dc442f96ec49
sluicebox
noreply at scummvm.org
Mon Jan 6 07:49:41 UTC 2025
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:
f5d5758327 AGI: PREAGI: Fix gcc warning
Commit: f5d57583275e5b9698e7b0dd0e53dc442f96ec49
https://github.com/scummvm/scummvm/commit/f5d57583275e5b9698e7b0dd0e53dc442f96ec49
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2025-01-05T23:49:07-08:00
Commit Message:
AGI: PREAGI: Fix gcc warning
Changed paths:
engines/agi/preagi/troll.cpp
diff --git a/engines/agi/preagi/troll.cpp b/engines/agi/preagi/troll.cpp
index 24b15b42e7b..de2f9047baa 100644
--- a/engines/agi/preagi/troll.cpp
+++ b/engines/agi/preagi/troll.cpp
@@ -451,7 +451,8 @@ int TrollEngine::drawRoom(char *menu) {
strncat(menu, Common::String::format(" %d.", i + 1).c_str(), 4);
strncat(menu, (char *)_gameData + _options[_roomDescs[_roomPicture - 1].options[i] - 1], 35);
- strncat(menu, " ", 1);
+ menu[(i + 2) * 40 - 1] = ' ';
+ menu[(i + 2) * 40] = '\0';
n = i + 1;
}
More information about the Scummvm-git-logs
mailing list