# HG changeset patch # User Teemu Piippo # Date 1437662449 -10800 # Node ID 294803d4ab5d82007c59157c51afb2ccf0f4faae # Parent 1ea012a6e1ecab8bcf55b81d6b2e1783b01ab73f Fix bad comparision in Bytestream::resize diff -r 1ea012a6e1ec -r 294803d4ab5d sources/network/bytestream.cpp --- a/sources/network/bytestream.cpp Thu Jul 23 17:39:52 2015 +0300 +++ b/sources/network/bytestream.cpp Thu Jul 23 17:40:49 2015 +0300 @@ -97,7 +97,7 @@ m_allocatedSize = newsize; m_data = new unsigned char[newsize]; - if (olddata > 0L) + if (oldsize > 0L) memcpy (m_data, olddata, min (oldsize, newsize)); }