From 46ca259fa6d43988f3944589be6a1aa303686147 Mon Sep 17 00:00:00 2001 From: jiho-sf Date: Tue, 14 Aug 2007 16:40:18 +0000 Subject: [PATCH] changed strndup to its gtk version (g_strndup) because compilation other wise fails on non-linux platforms --- src/extension/paramcolor.cpp | 4 ++-- 1 file 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; -- 2.30.2