Fix off by one error in Packet::CanWriteToPacket

This commit is contained in:
Jonathan G Rennison
2021-06-12 22:47:29 +01:00
parent e5696e6b5a
commit ad0e085ec7

View File

@@ -82,7 +82,7 @@ void Packet::PrepareToSend()
*/
bool Packet::CanWriteToPacket(size_t bytes_to_write)
{
return this->Size() + bytes_to_write < this->limit;
return this->Size() + bytes_to_write <= this->limit;
}
/*