nall: fix bad memory access pattern in string.format

This commit is contained in:
jsd1982
2020-10-28 18:35:28 +11:00
committed by Screwtapello
parent ac37afd153
commit 9d262ed113
+1 -1
View File
@@ -41,7 +41,7 @@ auto string::format(const nall::string_format& params) -> type& {
if(sourceSize > targetSize) {
uint difference = sourceSize - targetSize;
memory::move(&data[x], &data[x + difference], remaining);
memory::move(&data[x], &data[x + difference], remaining - difference);
size -= difference;
} else if(targetSize > sourceSize) {
uint difference = targetSize - sourceSize;