aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-10-30 11:59:23 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-10-30 11:59:23 +0200
commit6aab526989c292994d379b1ef5459d6ddc0eb74b (patch)
tree00476cabe84c410ade53762b0532e959bc94e60c
parentc349708eab121c60a0872b38160599c3ab9568cf (diff)
downloadminetest-6aab526989c292994d379b1ef5459d6ddc0eb74b.tar.gz
minetest-6aab526989c292994d379b1ef5459d6ddc0eb74b.tar.bz2
minetest-6aab526989c292994d379b1ef5459d6ddc0eb74b.zip
Attempt a workaround to the network layer segfault
-rw-r--r--src/connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index cdf8cd3b4..31c0f77a3 100644
--- 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);
+ SharedBuffer<u8> packetdata(packet_maxsize);
bool single_wait_done = false;