Skip to content
This repository was archived by the owner on Feb 19, 2023. It is now read-only.

Commit b719546

Browse files
committed
fix: correct length again
1 parent d8382f1 commit b719546

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TcpClient.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ Public Class TcpClient
4141
Public Function Report() As Boolean
4242
_networkStream.Write(_report, 0, _report.Length)
4343

44-
Dim bytes(_expectResponse.Length) As Byte
45-
_networkStream.Read(bytes, 0, CInt(_expectResponse.Length))
44+
Dim bytes(_expectResponse.Length - 1) As Byte
45+
_networkStream.Read(bytes, 0, CInt(_expectResponse.Length - 1))
4646

4747
Return bytes.SequenceEqual(_expectResponse)
4848
End Function

0 commit comments

Comments
 (0)