mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-10-18 06:21:30 +08:00
Fix Buffer.BlockCopy error in SftpFileStream.Write method
This commit is contained in:
@@ -864,7 +864,7 @@ namespace Renci.SshNet.Sftp
|
||||
// Yes: write the data directly to the file.
|
||||
var data = new byte[tempLen];
|
||||
|
||||
Buffer.BlockCopy(this._buffer, offset, data, 0, tempLen);
|
||||
Buffer.BlockCopy(buffer, offset, data, 0, tempLen);
|
||||
|
||||
this._session.Write(this._handle, (ulong)this.Position, data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user