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:
c349708
)
Attempt a workaround to the network layer segfault
author
Perttu Ahola
<celeron55@gmail.com>
Sun, 30 Oct 2011 09:59:23 +0000
(11:59 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Sun, 30 Oct 2011 09:59:23 +0000
(11:59 +0200)
src/connection.cpp
patch
|
blob
|
history
diff --git
a/src/connection.cpp
b/src/connection.cpp
index cdf8cd3b49cd87bc38daec980d0285514525ed76..31c0f77a353279f25d20e58b92600f3d71ad89d4 100644
(file)
--- a/
src/connection.cpp
+++ b/
src/connection.cpp
@@
-670,7
+670,7
@@
void Connection::receive()
// TODO: We can not know how many layers of header there are.
// For now, just assume there are no other than the base headers.
u32 packet_maxsize = datasize + BASE_HEADER_SIZE;
- Buffer<u8> packetdata(packet_maxsize);
+
Shared
Buffer<u8> packetdata(packet_maxsize);
bool single_wait_done = false;