summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d9fd6f9)
raw | patch | inline | side by side (parent: d9fd6f9)
author | jiho-sf <jiho-sf@users.sourceforge.net> | |
Tue, 14 Aug 2007 16:40:18 +0000 (16:40 +0000) | ||
committer | jiho-sf <jiho-sf@users.sourceforge.net> | |
Tue, 14 Aug 2007 16:40:18 +0000 (16:40 +0000) |
src/extension/paramcolor.cpp | patch | blob | history |
index 83dba1b2b573cf6545012b0d3e450cf58ff47bdc..c70d407f633c074aa34fb95d9a269bee961dc051 100644 (file)
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;