We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f2494b commit a461cfbCopy full SHA for a461cfb
dotnet/src/dotnetframework/GxClasses/Domain/GxFtp.cs
@@ -847,9 +847,9 @@ private bool IsCompleteResponse(Stream responseStream)
847
{
848
int StatusCode=-1;
849
Byte[] ByteArray = new Byte[responselength];
850
- String statuscodestr;
851
- responseStream.Read(ByteArray,0,responselength);
852
- statuscodestr=Encoding.ASCII.GetString(ByteArray,0,responselength);
+ String statuscodestr;
+ int bytesRead = responseStream.Read(ByteArray, 0, responselength);
+ statuscodestr = Encoding.ASCII.GetString(ByteArray,0, bytesRead);
853
if (responselength==5 && ByteArray[responselength-1] == '\n')
854
855
0 commit comments