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

master
madmaxoft 2013-11-03 11:58:11 +01:00
parent 53c31ee1cd
commit dacd6a5274
1 changed files with 1 additions and 1 deletions

View File

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