summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/socket.cpp3
-rwxr-xr-xsrc/svn-rev.sh2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index a1f322b50..4ae2f6768 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -278,7 +278,7 @@ bool InspSocket::FlushWriteBuffer()
}
else
{
- outbuffer[0] = outbuffer[0].substr(result + 1,outbuffer[0].length());
+ outbuffer[0] = outbuffer[0].substr(result + 1,outbuffer[0].length() - result);
}
}
else if ((result == -1) && (errno != EAGAIN))
@@ -398,5 +398,6 @@ void InspSocket::OnClose() { return; }
InspSocket::~InspSocket()
{
+ outbuffer.clear();
this->Close();
}
diff --git a/src/svn-rev.sh b/src/svn-rev.sh
index cf2461114..0295427fb 100755
--- a/src/svn-rev.sh
+++ b/src/svn-rev.sh
@@ -1 +1 @@
-echo 3669
+echo 3671