From: brain Date: Sat, 11 Mar 2006 19:11:21 +0000 (+0000) Subject: Deque doing some reallllly odd stuff X-Git-Tag: v2.0.23~8418 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=cc0573bf4a7b6835f0f9079ac8669fa7ba1d8763;p=user%2Fhenk%2Fcode%2Finspircd.git Deque doing some reallllly odd stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3678 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/socket.cpp b/src/socket.cpp index 72318aa42..cd4094727 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -283,7 +283,8 @@ bool InspSocket::FlushWriteBuffer() } else { - outbuffer[0] = outbuffer[0].substr(result + 1,outbuffer[0].length() - result); + std::string temp = outbuffer[0].substr(result + 1,outbuffer[0].length() - result - 1); + outbuffer[0] = temp; } } else if ((result == -1) && (errno != EAGAIN))