From 444ac9d82009eb2b79edec82b628b62b37e954e2 Mon Sep 17 00:00:00 2001 From: staphen Date: Wed, 27 Sep 2023 15:26:19 -0400 Subject: [PATCH] Use memmove when shifting data in high/low priority buffers --- Source/multi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/multi.cpp b/Source/multi.cpp index 498bee7f5..9f117aae2 100644 --- a/Source/multi.cpp +++ b/Source/multi.cpp @@ -121,7 +121,7 @@ std::byte *CopyBufferedPackets(std::byte *destination, TBuffer *source, size_t * srcPtr += chunkSize; *size -= chunkSize; } - memcpy(source->bData, srcPtr, (source->bData - srcPtr) + source->dwNextWriteOffset + 1); + memmove(source->bData, srcPtr, (source->bData - srcPtr) + source->dwNextWriteOffset + 1); source->dwNextWriteOffset += static_cast(source->bData - srcPtr); return destination; }