summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
authornewuser1 <flirtex@gmail.com>2012-11-03 00:48:35 +0800
committerattilamolnar <attilamolnar@hush.com>2012-11-06 15:39:25 +0100
commitfbb2afa55225f4f5139cd48d95098096c9c6e3e9 (patch)
treee85f4e91f48571dba7e60a39564602666ac61abd /src/inspsocket.cpp
parentc7a5cc0a98923192420eadc946a3d53bd0b5bdcc (diff)
Fix incorrect substr usage
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 1326093b9..27c6f87ec 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -300,7 +300,7 @@ void StreamSocket::DoWrite()
else if (rv < itemlen)
{
ServerInstance->SE->ChangeEventMask(this, FD_WANT_FAST_WRITE | FD_WRITE_WILL_BLOCK);
- front = front.substr(itemlen - rv);
+ front = front.substr(rv);
sendq_len -= rv;
return;
}