Skip to content

Commit e7e9171

Browse files
gregorycunerzhul
authored andcommittedJan 4, 2016
Fix for commit 87dcee6 It uses the wrong variable and only covers some use cases. This change covers all use cases.
1 parent 09a6910 commit e7e9171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/network/networkpacket.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void NetworkPacket::putRawString(const char* src, u32 len)
7777
m_data.resize(m_datasize);
7878
}
7979

80-
if (m_datasize == 0)
80+
if (len == 0)
8181
return;
8282

8383
memcpy(&m_data[m_read_offset], src, len);

0 commit comments

Comments
 (0)
Please sign in to comment.