diff options
Diffstat (limited to 'src/plugins/exiv2_extractor.cc')
-rw-r--r-- | src/plugins/exiv2_extractor.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/exiv2_extractor.cc b/src/plugins/exiv2_extractor.cc index 28033d3..8b9ea65 100644 --- a/src/plugins/exiv2_extractor.cc +++ b/src/plugins/exiv2_extractor.cc | |||
@@ -290,6 +290,8 @@ ExtractorIO::read (Exiv2::byte *buf, | |||
290 | { | 290 | { |
291 | if (-1 == (ret = ec->read (ec->cls, &data, rcount - got))) | 291 | if (-1 == (ret = ec->read (ec->cls, &data, rcount - got))) |
292 | return got; | 292 | return got; |
293 | if (0 == ret) | ||
294 | break; | ||
293 | memcpy (&buf[got], data, ret); | 295 | memcpy (&buf[got], data, ret); |
294 | got += ret; | 296 | got += ret; |
295 | } | 297 | } |