From: Wolfgang Stöggl Date: Fri, 23 Nov 2018 11:52:12 +0000 (+0100) Subject: Fix loop, sizeof(delims) X-Git-Tag: v1.7.1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d306688532afd36b9d02841bd4b0725f6468f3b;p=thirdparty%2Frrdtool-1.x.git Fix loop, sizeof(delims) - Update to https://github.com/oetiker/rrdtool-1.x/commit/2154d02 --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index d0d3d6b6..cdff5ea3 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -6197,7 +6197,7 @@ image_title_t graph_title_split( */ found_pos = 0; found_size = 0; - for(unsigned int i=0; i < sizeof(delims); i++) + for(unsigned int i=0; i < sizeof(delims) / sizeof(delims[0]); i++) { // get size of this delimiter int delim_size = strlen(delims[i]);