[Ante-cvs] SF.net SVN: ante: [494] trunk/ant/socket.cpp
Brought to you by:
roguestar191
|
From: <rog...@us...> - 2008-04-01 00:04:55
|
Revision: 494
http://ante.svn.sourceforge.net/ante/?rev=494&view=rev
Author: roguestar191
Date: 2008-03-31 17:04:49 -0700 (Mon, 31 Mar 2008)
Log Message:
-----------
if nread > 0 to avoid std::string::append(buf, -nread);
Modified Paths:
--------------
trunk/ant/socket.cpp
Modified: trunk/ant/socket.cpp
===================================================================
--- trunk/ant/socket.cpp 2008-03-09 03:57:44 UTC (rev 493)
+++ trunk/ant/socket.cpp 2008-04-01 00:04:49 UTC (rev 494)
@@ -873,7 +873,7 @@
}
delete[] buf2;
} // }}}
- } else {
+ } else if(nread > 0){
pls::APacket foundsome; // {{{
foundsome.buf.clear(); //make sure it's clean
int x = 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|