From 69bd6d4b20559ee5fabaa474582613284af2ea5a Mon Sep 17 00:00:00 2001 From: CCXXXI Date: Mon, 11 Jul 2022 17:47:34 +0800 Subject: [PATCH] Revert "fix: correct length again" This reverts commit 52c5743921b6d03b972fd88a5b30dd9feb686286. --- TcpClient.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TcpClient.vb b/TcpClient.vb index 200edb1..9d526a5 100644 --- a/TcpClient.vb +++ b/TcpClient.vb @@ -41,8 +41,8 @@ Public Class TcpClient Public Function Report() As Boolean _networkStream.Write(_report, 0, _report.Length) - Dim bytes(_expectResponse.Length - 1) As Byte - _networkStream.Read(bytes, 0, CInt(_expectResponse.Length - 1)) + Dim bytes(_expectResponse.Length) As Byte + _networkStream.Read(bytes, 0, CInt(_expectResponse.Length)) Return bytes.SequenceEqual(_expectResponse) End Function