SCI32: Fix overlapped memory copies in SciString
This commit is contained in:
parent
d9b2b7d484
commit
809dcf12ab
1 changed files with 1 additions and 1 deletions
|
@ -804,7 +804,7 @@ public:
|
||||||
while (*source != '\0' && *source != showChar && *source <= kWhitespaceBoundary) {
|
while (*source != '\0' && *source != showChar && *source <= kWhitespaceBoundary) {
|
||||||
++source;
|
++source;
|
||||||
}
|
}
|
||||||
strcpy((char *)target, (char *)source);
|
memmove(target, source, Common::strnlen((char *)source, _size - 1) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flags & kArrayTrimRight) {
|
if (flags & kArrayTrimRight) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue