Skip to content

Commit 4b37bea

Browse files
Merge pull request #1724 from Alexander-Ger-Reich/Alexander-Ger-Reich-patch-1
Fixing a data transfer error
2 parents f8612ec + 2a3c3cb commit 4b37bea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/src/main/java/com/owncloud/android/lib/common/network/ChunkFromFileChannelRequestEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void writeRequest(final OutputStream out) throws IOException {
103103
if (size == 0) {
104104
size = -1;
105105
}
106-
long maxCount = Math.min(mOffset + length - 1, mChannel.size());
106+
long maxCount = Math.min(mOffset + length, mChannel.size());
107107
while (mChannel.position() < maxCount) {
108108
readCount = mChannel.read(mBuffer);
109109
try {

0 commit comments

Comments
 (0)