cByteBuffer: Fixed GetUsedSpace() off-by-one error.
This commit is contained in:
parent
53c31ee1cd
commit
dacd6a5274
@ -195,7 +195,7 @@ int cByteBuffer::GetUsedSpace(void) const
|
||||
{
|
||||
CHECK_THREAD;
|
||||
CheckValid();
|
||||
return m_BufferSize - GetFreeSpace();
|
||||
return m_BufferSize - GetFreeSpace() - 1;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user