mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-26 09:29:45 +00:00
This needs to be a memmove
as the areas may overlap.
This commit is contained in:
parent
427175b9c0
commit
38f944bc34
@ -130,7 +130,7 @@ void ArrayBuilder::Buffer::flush()
|
|||||||
{
|
{
|
||||||
if(submitted_data)
|
if(submitted_data)
|
||||||
{
|
{
|
||||||
memcpy(data.data(), &data[submitted_data], allocated_data - submitted_data);
|
memmove(data.data(), &data[submitted_data], allocated_data - submitted_data);
|
||||||
allocated_data -= submitted_data;
|
allocated_data -= submitted_data;
|
||||||
flushed_data -= submitted_data;
|
flushed_data -= submitted_data;
|
||||||
submitted_data = 0;
|
submitted_data = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user