aboutsummaryrefslogtreecommitdiff
path: root/src/game/UpdateData.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-07-30 10:39:53 +0800
committermegamage <none@none>2009-07-30 10:39:53 +0800
commitb2b3983e8976a5656e6d3cc79f5b04c9b773e881 (patch)
tree39e31476945a50b336d0b2126f81e9e207292cf8 /src/game/UpdateData.cpp
parent5d9d64e6f048298a19f4c80795f05e31facb2318 (diff)
[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
Diffstat (limited to 'src/game/UpdateData.cpp')
-rw-r--r--src/game/UpdateData.cpp2
1 files changed, 1 insertions, 1 deletions
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<uint32>(0, pSize);