sources/network/bytestream.cpp

changeset 94
294803d4ab5d
parent 88
08ccaf26cffd
child 98
4f0f0b1b8e0b
--- 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));
 }
 

mercurial