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;