From e228b6ac441b5a9ceff398d874ba7b4a118c819b Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 5 Aug 2006 23:13:16 +0000 Subject: Fix colors and variables --- tools/rrdui-cgi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools') 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 */ -- cgit v1.2.3