From: Tobias Oetiker Date: Sun, 18 May 2008 12:53:01 +0000 (+0000) Subject: PRINT returns from rrd_graph did not work due to an off by one error X-Git-Tag: 1.3rc4~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b5323aa0fc7f1e101ab2e86dd8873e59d919bda;p=thirdparty%2Frrdtool-1.x.git PRINT returns from rrd_graph did not work due to an off by one error git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1364 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 47a7d35d..22b6ad35 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -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),