From fbb2afa55225f4f5139cd48d95098096c9c6e3e9 Mon Sep 17 00:00:00 2001 From: newuser1 Date: Sat, 3 Nov 2012 00:48:35 +0800 Subject: Fix incorrect substr usage --- 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 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; } -- cgit v1.2.3