Code

changed strndup to its gtk version (g_strndup) because compilation other wise fails...
authorjiho-sf <jiho-sf@users.sourceforge.net>
Tue, 14 Aug 2007 16:40:18 +0000 (16:40 +0000)
committerjiho-sf <jiho-sf@users.sourceforge.net>
Tue, 14 Aug 2007 16:40:18 +0000 (16:40 +0000)
src/extension/paramcolor.cpp

index 83dba1b2b573cf6545012b0d3e450cf58ff47bdc..c70d407f633c074aa34fb95d9a269bee961dc051 100644 (file)
@@ -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;