SCI32: Fix overlapped memory copies in SciString

This commit is contained in:
Colin Snover 2017-01-05 22:46:13 -06:00
parent d9b2b7d484
commit 809dcf12ab

View file

@ -804,7 +804,7 @@ public:
while (*source != '\0' && *source != showChar && *source <= kWhitespaceBoundary) {
++source;
}
strcpy((char *)target, (char *)source);
memmove(target, source, Common::strnlen((char *)source, _size - 1) + 1);
}
if (flags & kArrayTrimRight) {