Skip to content

Commit

Permalink
Merge pull request #181 from iterate-ch/issue-180
Browse files Browse the repository at this point in the history
Fix length field for SSH_FXP_WRITE packets.
  • Loading branch information
hierynomus committed Apr 1, 2015
2 parents 4250c61 + 8638091 commit b123a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/schmizz/sshj/sftp/RemoteFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected Promise<Response, SFTPException> asyncWrite(long fileOffset, byte[] da
throws IOException {
return requester.request(newRequest(PacketType.WRITE)
.putUInt64(fileOffset)
.putUInt32(len - off)
.putUInt32(len)
.putRawBytes(data, off, len)
);
}
Expand Down

0 comments on commit b123a6a

Please sign in to comment.