From: Tobias Oetiker Date: Wed, 14 Jan 2009 08:14:31 +0000 (+0000) Subject: In rrd_graph: the width/height values are written into rrd_infoval_t's u_cnt X-Git-Tag: 1.3.6~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a210187c19ad8be7550ca35c227a03e8e961c4f;p=thirdparty%2Frrdtool-1.x.git In rrd_graph: the width/height values are written into rrd_infoval_t's u_cnt but read out of u_int (u_long vs. int). This breaks on LP64BE. Patch by Rafal Boni rafal pobox.com git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1733 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 63a4b2e1..ad46339f 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -3654,9 +3654,9 @@ int rrd_graph( *ymax = 0; while (walker) { if (strcmp(walker->key, "image_width") == 0) { - *xsize = walker->value.u_int; + *xsize = walker->value.u_cnt; } else if (strcmp(walker->key, "image_height") == 0) { - *ysize = walker->value.u_int; + *ysize = walker->value.u_cnt; } else if (strcmp(walker->key, "value_min") == 0) { *ymin = walker->value.u_val; } else if (strcmp(walker->key, "value_max") == 0) {