Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wqx6 committed Jan 9, 2025
1 parent 931cbe3 commit 6bc6e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/SystemPacketBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ PacketBufferHandle PacketBufferHandle::NewWithData(const void * aData, size_t aD
while (aDataSize > 0)
{
size_t copyLen = currentBuffer->MaxDataLength() > aDataSize ? aDataSize : currentBuffer->MaxDataLength();
memcpy(currentBuffer->payload, aData, copyLen);
memcpy(currentBuffer->payload, dataPtr, copyLen);
aDataSize -= copyLen;
dataPtr += copyLen;
#if CHIP_SYSTEM_CONFIG_USE_LWIP
Expand Down

0 comments on commit 6bc6e00

Please sign in to comment.