summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/extension/paramcolor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extension/paramcolor.cpp b/src/extension/paramcolor.cpp
index 83dba1b2b..c70d407f6 100644
--- a/src/extension/paramcolor.cpp
+++ b/src/extension/paramcolor.cpp
@@ -73,9 +73,9 @@ ParamColor::ParamColor (const gchar * name, const gchar * guitext, const gchar *
if (strlen(defaulthex) == 6) {
int r = 0, g = 0, b = 0;
std::stringstream ss;
- ss << strndup(defaulthex, 2);
+ ss << g_strndup(defaulthex, 2);
ss >> std::hex >> r;
- ss << strndup(defaulthex + 2, 2);
+ ss << g_strndup(defaulthex + 2, 2);
ss >> std::hex >> g;
ss << defaulthex + 4;
ss >> std::hex >> b;