summaryrefslogtreecommitdiff
path: root/tools/rrdui-cgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/rrdui-cgi.c')
-rw-r--r--tools/rrdui-cgi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/rrdui-cgi.c b/tools/rrdui-cgi.c
index f5f526e..b593bf5 100644
--- a/tools/rrdui-cgi.c
+++ b/tools/rrdui-cgi.c
@@ -374,7 +374,6 @@ add_text(char** result, char** pos, char** end, const char* text, int len)
{
ASSERT(*result <= *pos);
ASSERT(*pos <= *end);
- ASSERT(text);
if(!len || !text)
return;
@@ -485,7 +484,7 @@ substitute_variables(graph* gr, time_t start, time_t end, const char* src)
{
color = atoi(src + 5);
if(color > 0 && color < MAX_COLORS)
- add_text(&result, &p, &bound, all_colors[color], -1);
+ add_text(&result, &p, &bound, all_colors[color - 1], -1);
}
/* Pull other environment variables from outside */