From: jiho-sf Date: Tue, 14 Aug 2007 16:40:18 +0000 (+0000) Subject: changed strndup to its gtk version (g_strndup) because compilation other wise fails... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=46ca259fa6d43988f3944589be6a1aa303686147;p=inkscape.git changed strndup to its gtk version (g_strndup) because compilation other wise fails on non-linux platforms --- 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;