Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Aug 8, 2023
1 parent e4bc426 commit 4504a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/packet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ CPacket* CPacket::clone() const
memcpy((pkt->m_nHeader), m_nHeader, HDR_SIZE);
pkt->allocate(this->getLength());
SRT_ASSERT(this->getLength() == pkt->getLength());
memcpy((pkt->m_pcData), m_pcData, m_PacketVector[PV_DATA].size());
memcpy((pkt->m_pcData), m_pcData, this->getLength());
pkt->m_DestAddr = m_DestAddr;

return pkt;
Expand Down

0 comments on commit 4504a53

Please sign in to comment.