[Scummvm-git-logs] scummvm master -> 818194e8cf03a0115faa0b028080ffb2a474d11e
dwatteau
noreply at scummvm.org
Sat Dec 24 08:36:02 UTC 2022
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:
818194e8cf SCUMM: Fix build on older systems lacking strnlen
Commit: 818194e8cf03a0115faa0b028080ffb2a474d11e
https://github.com/scummvm/scummvm/commit/818194e8cf03a0115faa0b028080ffb2a474d11e
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2022-12-24T09:32:45+01:00
Commit Message:
SCUMM: Fix build on older systems lacking strnlen
Changed paths:
engines/scumm/gfx_gui.cpp
diff --git a/engines/scumm/gfx_gui.cpp b/engines/scumm/gfx_gui.cpp
index 53080745650..7d7a983deb4 100644
--- a/engines/scumm/gfx_gui.cpp
+++ b/engines/scumm/gfx_gui.cpp
@@ -2106,7 +2106,7 @@ bool ScummEngine::executeMainMenuOperationSegaCD(int op, int mouseX, int mouseY,
case GUI_CTRL_NUMPAD_BACK:
{
int inputNum = (op == GUI_CTRL_NUMPAD_0) ? 0 : op;
- uint curIdx = strnlen(_mainMenuSegaCDPasscode, sizeof(_mainMenuSegaCDPasscode));
+ uint curIdx = Common::strnlen(_mainMenuSegaCDPasscode, sizeof(_mainMenuSegaCDPasscode));
if (op == GUI_CTRL_NUMPAD_BACK) {
if (curIdx > 0) {
More information about the Scummvm-git-logs
mailing list