Code

PRINT returns from rrd_graph did not work due to an off by one error
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 18 May 2008 12:53:01 +0000 (12:53 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 18 May 2008 12:53:01 +0000 (12:53 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1364 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_graph.c

index 47a7d35d2e5710472c47a128495d6ec1506726ba..22b6ad35498d35b7307229ecd106d4da835438ce 100644 (file)
@@ -3571,7 +3571,7 @@ int rrd_graph(
             *ymin = walker->value.u_val;
         } else if (strcmp(walker->key, "value_max") == 0) {
             *ymax = walker->value.u_val;
-        } else if (strncmp(walker->key, "print", 6) == 0) { /* keys are prdate[0..] */
+        } else if (strncmp(walker->key, "print", 5) == 0) { /* keys are prdate[0..] */
             prlines++;
             if (((*prdata) =
                  rrd_realloc((*prdata),