Fix bad comparision in Bytestream::resize

Thu, 23 Jul 2015 17:40:49 +0300

author
Teemu Piippo <tsapii@utu.fi>
date
Thu, 23 Jul 2015 17:40:49 +0300
changeset 94
294803d4ab5d
parent 93
1ea012a6e1ec
child 95
e7439fa13093

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

mercurial