From c84271be2e581bc50aa89ba2185a219cc8154ef0 Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 14 Jan 2010 18:20:00 +0000 Subject: Fix stripping of character prior to delimiter in StreamSocket::GetNextLine (not noticed because it was usually \r) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12257 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 613cce064..8d03004a7 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -156,7 +156,7 @@ bool StreamSocket::GetNextLine(std::string& line, char delim) std::string::size_type i = recvq.find(delim); if (i == std::string::npos) return false; - line = recvq.substr(0, i - 1); + line = recvq.substr(0, i); // TODO is this the most efficient way to split? recvq = recvq.substr(i + 1); return true; -- cgit v1.2.3