Browse Source

Use memmove when shifting data in high/low priority buffers

pull/6667/head
staphen 3 years ago committed by Anders Jenbo
parent
commit
444ac9d820
  1. 2
      Source/multi.cpp

2
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<uint32_t>(source->bData - srcPtr);
return destination;
}

Loading…
Cancel
Save