fixes #3941, Monitor and printer ICC color profiles missing

This commit is contained in:
heckflosse
2017-06-26 17:46:12 +02:00
parent 73573e1b87
commit 3449945f25

View File

@@ -220,7 +220,7 @@ rtengine::ProfileContent::ProfileContent(const Glib::ustring& fileName)
if(length > 0) {
char* d = new char[length + 1];
fseek(f, 0, SEEK_SET);
length = fread(d, length, 1, f);
length = fread(d, 1, length, f);
d[length] = 0;
data.assign(d, length);
delete[] d;