cByteBuffer: Fixed GetUsedSpace() off-by-one error.
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