Fixed overlapping memcpy

This commit is contained in:
Ryzerth 2020-07-20 13:48:47 +02:00
parent d47679c5cf
commit d85fed00a0

View File

@ -372,7 +372,7 @@ namespace ImGui {
rawFFTs.resize(waterfallHeight);
}
memcpy(&waterfallFb[dataWidth], waterfallFb, dataWidth * (waterfallHeight - 1) * sizeof(uint32_t));
memmove(&waterfallFb[dataWidth], waterfallFb, dataWidth * (waterfallHeight - 1) * sizeof(uint32_t));
float pixel;
float dataRange = waterfallMax - waterfallMin;
for (int j = 0; j < dataWidth; j++) {