1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Add Memory::Copy overlap check and Memory::Move

This commit is contained in:
Ted John
2016-06-30 18:53:49 +01:00
parent 343623c815
commit d1dc6b528d
2 changed files with 17 additions and 5 deletions

View File

@@ -251,7 +251,7 @@ namespace String
assert(newStringSize < currentStringSize);
#endif
Memory::Copy(str, firstNonWhitespace, newStringSize);
Memory::Move(str, firstNonWhitespace, newStringSize);
str[newStringSize] = '\0';
}
else