Skip to content

Commit 8ffb59c

Browse files
authored
Merge pull request #1007 from Exiv2/fix_910_remote_io_block+1
fix_910_remote_io_block+1
2 parents c02b799 + 4852bd2 commit 8ffb59c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basicio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1896,7 +1896,7 @@ namespace Exiv2 {
18961896
return EOF;
18971897
}
18981898

1899-
size_t expectedBlock = (p_->idx_ + 1)/p_->blockSize_;
1899+
size_t expectedBlock = p_->idx_/p_->blockSize_;
19001900
// connect to the remote machine & populate the blocks just in time.
19011901
p_->populateBlocks(expectedBlock, expectedBlock);
19021902

0 commit comments

Comments
 (0)