Fixed one wrongly function call with pointer
authorKlaus Ethgen <Klaus@Ethgen.de>
Sun, 6 Mar 2016 22:45:10 +0000 (23:45 +0100)
committerKlaus Ethgen <Klaus@Ethgen.de>
Sun, 6 Mar 2016 22:45:10 +0000 (23:45 +0100)
This is a potentional dangerous call to LCMS function. There was a
compiler warning but nobody cared about before.

src/color-man.c

index e4f1bab..8e485bc 100644 (file)
@@ -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