Merge pull request #181 from iterate-ch/issue-180

Fix length field for SSH_FXP_WRITE packets.
This commit is contained in:
Jeroen van Erp
2015-04-01 11:24:30 +02:00

View File

@@ -88,7 +88,7 @@ public class RemoteFile
throws IOException {
return requester.request(newRequest(PacketType.WRITE)
.putUInt64(fileOffset)
.putUInt32(len - off)
.putUInt32(len)
.putRawBytes(data, off, len)
);
}