diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-10-30 11:59:23 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-10-30 11:59:23 +0200 |
commit | 6aab526989c292994d379b1ef5459d6ddc0eb74b (patch) | |
tree | 00476cabe84c410ade53762b0532e959bc94e60c /src | |
parent | c349708eab121c60a0872b38160599c3ab9568cf (diff) | |
download | minetest-6aab526989c292994d379b1ef5459d6ddc0eb74b.tar.gz minetest-6aab526989c292994d379b1ef5459d6ddc0eb74b.tar.bz2 minetest-6aab526989c292994d379b1ef5459d6ddc0eb74b.zip |
Attempt a workaround to the network layer segfault
Diffstat (limited to 'src')
-rw-r--r-- | src/connection.cpp | 2 |
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; |