Fix Buffer.BlockCopy error in SftpFileStream.Write method

This commit is contained in:
olegkap_cp
2011-06-21 20:14:54 +00:00
parent ef83707843
commit be896dc88a
@@ -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);
}