From cc0573bf4a7b6835f0f9079ac8669fa7ba1d8763 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 11 Mar 2006 19:11:21 +0000 Subject: [PATCH] Deque doing some reallllly odd stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3678 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.39.5