[Scummvm-git-logs] scummvm master -> a3c204eb1333ebfe9ae378db4257dbf62620b0ae
dwatteau
noreply at scummvm.org
Sun Nov 29 12:41:18 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
a3c204eb13 SNATCHER: Fix build on platforms not having any strnlen() in libc
Commit: a3c204eb1333ebfe9ae378db4257dbf62620b0ae
https://github.com/scummvm/scummvm/commit/a3c204eb1333ebfe9ae378db4257dbf62620b0ae
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2026-11-29T13:40:28+01:00
Commit Message:
SNATCHER: Fix build on platforms not having any strnlen() in libc
Changed paths:
engines/snatcher/snatcher.cpp
diff --git a/engines/snatcher/snatcher.cpp b/engines/snatcher/snatcher.cpp
index dc9ad80b1d4..2204255cf80 100644
--- a/engines/snatcher/snatcher.cpp
+++ b/engines/snatcher/snatcher.cpp
@@ -37,6 +37,7 @@
#include "common/endian.h"
#include "common/events.h"
#include "common/list.h"
+#include "common/str.h"
#include "common/system.h"
#include "graphics/cursorman.h"
#include "graphics/pixelformat.h"
@@ -809,7 +810,7 @@ bool SnatcherEngine::canLoadGameStateCurrently(Common::U32String*) {
bool SnatcherEngine::canSaveGameStateCurrently(Common::U32String *msg) {
static const char txt[] = "Saving not possible right now.\nFor now, saving is mostly limited to situations where the original interpreter would allow it.";
if (msg != nullptr)
- *msg = Common::U32String(txt, strnlen(txt, ARRAYSIZE(txt)));
+ *msg = Common::U32String(txt, Common::strnlen(txt, ARRAYSIZE(txt)));
return _saveMan->canSaveHere() && _ui->canSaveHere() && _aseq->canSaveHere();
}
More information about the Scummvm-git-logs
mailing list