From e7e9171f37730c34dd687aa2b9ca5392aa41e46b Mon Sep 17 00:00:00 2001 From: gregorycu Date: Mon, 4 Jan 2016 16:15:50 +1100 Subject: Fix for commit 87dcee6 It uses the wrong variable and only covers some use cases. This change covers all use cases. --- src/network/networkpacket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/networkpacket.cpp b/src/network/networkpacket.cpp index 2b308f334..388afc18e 100644 --- a/src/network/networkpacket.cpp +++ b/src/network/networkpacket.cpp @@ -77,7 +77,7 @@ void NetworkPacket::putRawString(const char* src, u32 len) m_data.resize(m_datasize); } - if (m_datasize == 0) + if (len == 0) return; memcpy(&m_data[m_read_offset], src, len); -- cgit v1.2.3