changeset 2276:e30e8afa74be

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.
author Klaus Ethgen <Klaus@Ethgen.de>
date Sun, 06 Mar 2016 23:45:10 +0100
parents e88d019b2633
children 3bb22c74f12e
files src/color-man.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/color-man.c	Fri Mar 04 11:45:17 2016 +0100
+++ b/src/color-man.c	Sun Mar 06 23:45:10 2016 +0100
@@ -435,7 +435,7 @@
 				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