diff options
author | newuser1 <flirtex@gmail.com> | 2012-11-03 00:48:35 +0800 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-11-06 15:39:25 +0100 |
commit | fbb2afa55225f4f5139cd48d95098096c9c6e3e9 (patch) | |
tree | e85f4e91f48571dba7e60a39564602666ac61abd | |
parent | c7a5cc0a98923192420eadc946a3d53bd0b5bdcc (diff) |
Fix incorrect substr usage
-rw-r--r-- | src/inspsocket.cpp | 2 |
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; } |