summaryrefslogtreecommitdiffstats
path: root/source/ByteBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/ByteBuffer.cpp')
-rw-r--r--source/ByteBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/ByteBuffer.cpp b/source/ByteBuffer.cpp
index bccd1c48b..1cdd2f430 100644
--- a/source/ByteBuffer.cpp
+++ b/source/ByteBuffer.cpp
@@ -195,7 +195,7 @@ int cByteBuffer::GetUsedSpace(void) const
{
CHECK_THREAD;
CheckValid();
- return m_BufferSize - GetFreeSpace();
+ return m_BufferSize - GetFreeSpace() - 1;
}