From b2b3983e8976a5656e6d3cc79f5b04c9b773e881 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 30 Jul 2009 10:39:53 +0800 Subject: [8231] Use more safe destination buffer size for zlib compression. Author: SilverIce [8230] Add new line at the end of file Player.h to make gcc happy. Author: Gendalph --HG-- branch : trunk --- src/game/UpdateData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/UpdateData.cpp') diff --git a/src/game/UpdateData.cpp b/src/game/UpdateData.cpp index a3192b74b0e..e461d63e248 100644 --- a/src/game/UpdateData.cpp +++ b/src/game/UpdateData.cpp @@ -128,7 +128,7 @@ bool UpdateData::BuildPacket(WorldPacket *packet) if (pSize > 100 ) // compress large packets { - uint32 destsize = pSize; + uint32 destsize = compressBound(pSize); packet->resize( destsize + sizeof(uint32) ); packet->put(0, pSize); -- cgit v1.2.3