From: Perttu Ahola Date: Sun, 30 Oct 2011 09:59:23 +0000 (+0200) Subject: Attempt a workaround to the network layer segfault X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=6aab526989c292994d379b1ef5459d6ddc0eb74b;p=zefram%2Fminetest%2Fminetest_engine.git Attempt a workaround to the network layer segfault --- diff --git a/src/connection.cpp b/src/connection.cpp index cdf8cd3b..31c0f77a 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 packetdata(packet_maxsize); + SharedBuffer packetdata(packet_maxsize); bool single_wait_done = false;