fix for issue 183 (sftp.RemoteFile.ReadAheadRemoteFileInputStream) (revised)

This commit is contained in:
Björn Karge
2015-06-04 10:50:13 +08:00
parent 8e74330b0b
commit 14edb33fa9

View File

@@ -89,7 +89,8 @@ public class RemoteFile
throws IOException {
return requester.request(newRequest(PacketType.WRITE)
.putUInt64(fileOffset)
.putUInt32(len - off)
// TODO The SFTP spec claims this field is unneeded...? See #187
.putUInt32(len)
.putRawBytes(data, off, len)
);
}