libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit ffba63b3b7d6bd6144f5cf8edfd03a685b35107f
parent 90066b42349713b8f1f3020ee2aed458e4722509
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 23 Aug 2012 22:42:34 +0000

fix eof

Diffstat:
Msrc/plugins/exiv2_extractor.cc | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/plugins/exiv2_extractor.cc b/src/plugins/exiv2_extractor.cc @@ -290,6 +290,8 @@ ExtractorIO::read (Exiv2::byte *buf, { if (-1 == (ret = ec->read (ec->cls, &data, rcount - got))) return got; + if (0 == ret) + break; memcpy (&buf[got], data, ret); got += ret; }