From: Klaus Ethgen Date: Sun, 6 Mar 2016 22:45:10 +0000 (+0100) Subject: Fixed one wrongly function call with pointer X-Git-Tag: v1.2.3~1 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=9b5358ca14431bd67978b102c0f6be1802778285 Fixed one wrongly function call with pointer This is a potentional dangerous call to LCMS function. There was a compiler warning but nobody cared about before. --- diff --git a/src/color-man.c b/src/color-man.c index e4f1bab1..8e485bc4 100644 --- a/src/color-man.c +++ b/src/color-man.c @@ -435,7 +435,7 @@ static gchar *color_man_get_profile_name(ColorManProfileType type, cmsHPROFILE p cmsUInt32Number r; char buffer[20]; buffer[0] = '\0'; - r = cmsGetProfileInfoASCII(profile, cmsInfoDescription, "en", "US", &buffer, 20); + r = cmsGetProfileInfoASCII(profile, cmsInfoDescription, "en", "US", buffer, 20); buffer[19] = '\0'; /* Just to be sure */ return g_strdup(buffer); #else