summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-14 18:20:00 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-14 18:20:00 +0000
commitc84271be2e581bc50aa89ba2185a219cc8154ef0 (patch)
tree867deb2ce93202eb41e710aac2c3074d6cadc0fb /src/inspsocket.cpp
parent601d67fd5f5a9e430a59a1930382eae67eb39fb4 (diff)
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
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp2
1 files changed, 1 insertions, 1 deletions
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;