Attempt a workaround to the network layer segfault
authorPerttu Ahola <celeron55@gmail.com>
Sun, 30 Oct 2011 09:59:23 +0000 (11:59 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 30 Oct 2011 09:59:23 +0000 (11:59 +0200)
src/connection.cpp

index cdf8cd3b49cd87bc38daec980d0285514525ed76..31c0f77a353279f25d20e58b92600f3d71ad89d4 100644 (file)
@@ -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;