From e654c00ad0e19b551f652d06df061ea2648824bb Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 2 Feb 2020 20:11:11 +0100 Subject: [PATCH] Fixed the decompress helper --- src/protocol/CompressionHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/CompressionHandler.cpp b/src/protocol/CompressionHandler.cpp index b85c460..ccb1c1b 100644 --- a/src/protocol/CompressionHandler.cpp +++ b/src/protocol/CompressionHandler.cpp @@ -104,7 +104,7 @@ bool CompressionHandler::decompress(protocol::BasicPacket* packet, std::string & auto buffer = buffer::allocate_buffer(expected_length + header_length); size_t compressed_size{expected_length}; - if(!compression::qlz_compress_payload(packet->data().data_ptr(), packet->data().length(), &buffer[header_length], &compressed_size)) return false; + if(!compression::qlz_decompress_payload(packet->data().data_ptr(), &buffer[header_length], &compressed_size)) return false; packet->buffer(buffer.range(0, compressed_size + header_length)); return true;