#1129. Fix submitted.

This commit is contained in:
Robin Mills
2015-10-13 21:19:25 +00:00
parent 81f0e43af4
commit abd5ecedd4
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ try {
Exiv2::DataBuf buf(io.size());
std::cout << "Reading " << buf.size_ << " bytes from " << data << "\n";
io.read(buf.pData_, buf.size_);
if (io.error() || io.eof()) throw Exiv2::Error(14);
if (io.error() || !io.eof()) throw Exiv2::Error(14);
// Read metadata from file
Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(file);