diff options
author | Stef Walter <stef@memberwebs.com> | 2006-08-05 23:13:16 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2006-08-05 23:13:16 +0000 |
commit | e228b6ac441b5a9ceff398d874ba7b4a118c819b (patch) | |
tree | 6a357510f2fc1ca1192727bbfa775faec608a4bc /tools/rrdui-cgi.c | |
parent | 62dedf4120bd19c12bdb3c1dba8bbb1e7dfd2d58 (diff) |
Fix colors and variables
Diffstat (limited to 'tools/rrdui-cgi.c')
-rw-r--r-- | tools/rrdui-cgi.c | 3 |
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 */ |