Fix two coverity issues

This commit is contained in:
heckflosse
2018-11-17 01:30:59 +01:00
parent d66d8ce320
commit 50936b2447
2 changed files with 2 additions and 3 deletions

View File

@@ -2191,7 +2191,7 @@ bool Thumbnail::readEmbProfile (const Glib::ustring& fname)
if (!fseek (f, 0, SEEK_SET)) {
embProfileData = new unsigned char[embProfileLength];
fread (embProfileData, 1, embProfileLength, f);
embProfileLength = fread (embProfileData, 1, embProfileLength, f);
embProfile = cmsOpenProfileFromMem (embProfileData, embProfileLength);
}
}