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)); }