Fix for commit 87dcee6 It uses the wrong variable and only covers some use cases...
authorgregorycu <gregory.currie@gmail.com>
Mon, 4 Jan 2016 05:15:50 +0000 (16:15 +1100)
committerLoic Blot <loic.blot@unix-experience.fr>
Mon, 4 Jan 2016 06:50:39 +0000 (07:50 +0100)
src/network/networkpacket.cpp

index 2b308f334e2f94211cd9e86d36bd833d9917724d..388afc18e7c5f628e1f0bc3a50590e6327ed776f 100644 (file)
@@ -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);