summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6b69fb3)
raw | patch | inline | side by side (parent: 6b69fb3)
author | Florian Forster <octo@verplant.org> | |
Wed, 8 Sep 2010 09:26:04 +0000 (11:26 +0200) | ||
committer | Florian Forster <octo@verplant.org> | |
Wed, 8 Sep 2010 09:26:04 +0000 (11:26 +0200) |
src/graph_def.c | patch | blob | history |
diff --git a/src/graph_def.c b/src/graph_def.c
index 7ac8dac51920fa2b7f70f87a2155fade131d2684..c7ecb988069299e233421659882fa6a3028b2219 100644 (file)
--- a/src/graph_def.c
+++ b/src/graph_def.c
if (def == NULL)
return (0);
- snprintf (color, sizeof (color), "%06"PRIx32, def->color);
+ snprintf (color, sizeof (color), "#%06"PRIx32, def->color);
color[sizeof (color) - 1] = 0;
yajl_gen_map_open (handler);
yajl_gen_map_close (handler);
return (def_to_json_recursive (def->next, handler));
+#undef yajl_gen_string_cast
} /* }}} int def_to_json_recursive */
/*