mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-11 13:39:09 +00:00
Fix SL and WP compile.
This commit is contained in:
@@ -400,10 +400,11 @@ namespace Renci.SshNet
|
||||
b = ReadByte(stream);
|
||||
}
|
||||
|
||||
if (hasError)
|
||||
throw new ScpException(ConnectionInfo.Encoding.GetString(buffer.ToArray()));
|
||||
var readBytes = buffer.ToArray();
|
||||
|
||||
return ConnectionInfo.Encoding.GetString(buffer.ToArray());
|
||||
if (hasError)
|
||||
throw new ScpException(ConnectionInfo.Encoding.GetString(readBytes, 0, readBytes.Length));
|
||||
return ConnectionInfo.Encoding.GetString(readBytes, 0, readBytes.Length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user