diff options
-rw-r--r-- | src/socket.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index 72318aa42..cd4094727 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -283,7 +283,8 @@ bool InspSocket::FlushWriteBuffer() } else { - outbuffer[0] = outbuffer[0].substr(result + 1,outbuffer[0].length() - result); + std::string temp = outbuffer[0].substr(result + 1,outbuffer[0].length() - result - 1); + outbuffer[0] = temp; } } else if ((result == -1) && (errno != EAGAIN)) |