[Scummvm-git-logs] scummvm master -> c2db9da3103d13fd1c95c35c03e26f9ae587f7e4
lephilousophe
noreply at scummvm.org
Mon Nov 11 12:01:20 UTC 2024
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:
c2db9da310 COMMON: Fix replace with consecutive from characters
Commit: c2db9da3103d13fd1c95c35c03e26f9ae587f7e4
https://github.com/scummvm/scummvm/commit/c2db9da3103d13fd1c95c35c03e26f9ae587f7e4
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2024-11-11T13:01:00+01:00
Commit Message:
COMMON: Fix replace with consecutive from characters
The commit 35125f5509840920241d85563486ffb34b2ce339 introduced a
spurious +1 which implies skipping a character while looking for the
next character to replace.
Changed paths:
common/str-base.cpp
diff --git a/common/str-base.cpp b/common/str-base.cpp
index 1dbe21b4181..4268cf3819f 100644
--- a/common/str-base.cpp
+++ b/common/str-base.cpp
@@ -795,7 +795,7 @@ TEMPLATE void BASESTRING::replace(value_type from, value_type to) {
while(next) {
*next = to;
next++;
- next = cMemChr(next + 1, from, end - next);
+ next = cMemChr(next, from, end - next);
}
}
More information about the Scummvm-git-logs
mailing list