[Modify] Polish it

This commit is contained in:
sta 2019-06-11 21:34:23 +09:00
parent 1839fd2b27
commit 6d29f8fa4c

View File

@ -1618,7 +1618,7 @@ namespace WebSocketSharp
return array;
}
if (startIndex < 0 || startIndex > len - 1)
if (startIndex < 0 || startIndex >= len)
throw new ArgumentOutOfRangeException ("startIndex");
if (length < 0 || length > len - startIndex)