From 9b5358ca14431bd67978b102c0f6be1802778285 Mon Sep 17 00:00:00 2001 From: Klaus Ethgen Date: Sun, 6 Mar 2016 23:45:10 +0100 Subject: [PATCH] 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. --- src/color-man.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1