Fix length field for SSH_FXP_WRITE packets.

This commit is contained in:
David Kocher
2015-02-23 16:17:24 +01:00
parent 5fc08a3fc8
commit 8638091517

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)
);
}