Mercurial > hg > forks > geeqie
changeset 2250:e4fb0d050b29
Fix lcms2 integration
Thanks Michael Schwendt <mschwendt@gmail.com> for the bug reporting and
the patch.
author | Klaus Ethgen <Klaus@Ethgen.de> |
---|---|
date | Sat, 27 Sep 2014 12:07:10 +0100 |
parents | 4c30cb6fcf93 |
children | f1dc378261e4 e3c55ee1225f 0dfd0c2d7c38 c67b4f60c4b1 |
files | src/color-man.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/color-man.c Sun Jul 20 14:16:02 2014 +0100 +++ b/src/color-man.c Sat Sep 27 12:07:10 2014 +0100 @@ -432,10 +432,12 @@ if (profile) { #ifdef HAVE_LCMS2 - cmsUInt8Number profileID[17]; - profileID[16] = '\0'; - cmsGetHeaderProfileID(profile, profileID); - return g_strdup((gchar *) profileID); + cmsUInt32Number r; + char buffer[20]; + buffer[0] = '\0'; + r = cmsGetProfileInfoASCII(profile, cmsInfoDescription, "en", "US", &buffer, 20); + buffer[19] = '\0'; /* Just to be sure */ + return g_strdup(buffer); #else return g_strdup(cmsTakeProductName(profile)); #endif