projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4114f7
)
Fixed one wrongly function call with pointer
author
Klaus Ethgen
<Klaus@Ethgen.de>
Sun, 6 Mar 2016 22:45:10 +0000
(23:45 +0100)
committer
Klaus Ethgen
<Klaus@Ethgen.de>
Mon, 7 Mar 2016 10:18:45 +0000
(11:18 +0100)
This is a potentional dangerous call to LCMS function. There was a
compiler warning but nobody cared about before.
src/color-man.c
patch
|
blob
|
history
diff --git
a/src/color-man.c
b/src/color-man.c
index
e4f1bab
..
8e485bc
100644
(file)
--- 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