[Modify] Polish it

This commit is contained in:
sta 2021-01-29 19:36:32 +09:00
parent d41e20750f
commit a688bbf115

View File

@ -148,7 +148,7 @@ namespace WebSocketSharp.Net
if (count > _count) if (count > _count)
count = _count; count = _count;
if (_bodyLeft > 0 && count > _bodyLeft) if (_bodyLeft > 0 && _bodyLeft < count)
count = (int) _bodyLeft; count = (int) _bodyLeft;
Buffer.BlockCopy (_buffer, _offset, buffer, offset, count); Buffer.BlockCopy (_buffer, _offset, buffer, offset, count);