Skip to content

Commit

Permalink
bufRead needs to be adjusted after seek()
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Jul 21, 2021
1 parent cdff182 commit 32c106d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jpgimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ namespace Exiv2 {
io_->seek(-bufRead, BasicIo::cur);
iptcDataSegs.push_back(io_->tell());
iptcDataSegs.push_back(size);
bufRead = 0;
}
} else if (bPrint) {
const size_t start = size > 0 ? 2 : 0;
Expand Down

0 comments on commit 32c106d

Please sign in to comment.