1
0

cByteBuffer: Fixed GetUsedSpace() off-by-one error.

This commit is contained in:
madmaxoft 2013-11-03 11:58:11 +01:00
parent 53c31ee1cd
commit dacd6a5274

View File

@ -195,7 +195,7 @@ int cByteBuffer::GetUsedSpace(void) const
{ {
CHECK_THREAD; CHECK_THREAD;
CheckValid(); CheckValid();
return m_BufferSize - GetFreeSpace(); return m_BufferSize - GetFreeSpace() - 1;
} }