GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Does a memcpy() between buffers.
But it's a memmove.
Thanks for the report, but it explains functionality, not accurate implementation detail.
That is relevant to the functionality! If I have a buffer
<Buffer 68 65 6c 6c 6f 20 00 77 6f 72 6c 64>
and want to get rid of that nullbyte, moving the stuff inside the buffer wouldn't be safe if I used a memcpy. I would need to allocate a second buffer. However, because it's a memmove, I can do that.
I see, I will fix soon.