Skip to content

Commit

Permalink
Change fix to CA2022
Browse files Browse the repository at this point in the history
(cherry picked from commit b701831)

# Conflicts:
#	dotnet/src/dotnetframework/GxClasses/Domain/GxFtp.cs
  • Loading branch information
claudiamurialdo committed Nov 19, 2024
1 parent f6d2edf commit 3e2faab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dotnet/src/dotnetframework/GxClasses/Domain/GxFtp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -847,9 +847,9 @@ private bool IsCompleteResponse(Stream responseStream)
{
int StatusCode=-1;
Byte[] ByteArray = new Byte[responselength];
String statuscodestr;
responseStream.Read(ByteArray,0,responselength);
statuscodestr=Encoding.ASCII.GetString(ByteArray,0,responselength);
String statuscodestr;
int bytesRead = responseStream.Read(ByteArray, 0, responselength);
statuscodestr = Encoding.ASCII.GetString(ByteArray,0, bytesRead);
if (responselength==5 && ByteArray[responselength-1] == '\n')
{

Expand Down

0 comments on commit 3e2faab

Please sign in to comment.