mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-23 08:59:40 +00:00
nall: fix bad memory access pattern in string.format
This commit is contained in:
parent
ac37afd153
commit
9d262ed113
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user