projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09a6910
)
Fix for commit 87dcee6 It uses the wrong variable and only covers some use cases...
author
gregorycu
<gregory.currie@gmail.com>
Mon, 4 Jan 2016 05:15:50 +0000
(16:15 +1100)
committer
Loic Blot
<loic.blot@unix-experience.fr>
Mon, 4 Jan 2016 06:50:39 +0000
(07:50 +0100)
src/network/networkpacket.cpp
patch
|
blob
|
history
diff --git
a/src/network/networkpacket.cpp
b/src/network/networkpacket.cpp
index 2b308f334e2f94211cd9e86d36bd833d9917724d..388afc18e7c5f628e1f0bc3a50590e6327ed776f 100644
(file)
--- 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);