Merge pull request #1007 from Exiv2/fix_910_remote_io_block+1

fix_910_remote_io_block+1
This commit is contained in:
Luis Díaz Más 2019-10-09 08:04:37 +02:00 committed by GitHub
commit 8ffb59cfd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1896,7 +1896,7 @@ namespace Exiv2 {
return EOF;
}
size_t expectedBlock = (p_->idx_ + 1)/p_->blockSize_;
size_t expectedBlock = p_->idx_/p_->blockSize_;
// connect to the remote machine & populate the blocks just in time.
p_->populateBlocks(expectedBlock, expectedBlock);