From 6aab526989c292994d379b1ef5459d6ddc0eb74b Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 30 Oct 2011 11:59:23 +0200 Subject: [PATCH] Attempt a workaround to the network layer segfault --- src/connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2