Thu, 23 Jul 2015 17:40:49 +0300
Fix bad comparision in Bytestream::resize
sources/network/bytestream.cpp | file | annotate | diff | comparison | revisions |
--- 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)); }