]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Fix loop, sizeof(delims)
authorWolfgang Stöggl <c72578@yahoo.de>
Fri, 23 Nov 2018 11:52:12 +0000 (12:52 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Fri, 23 Nov 2018 13:07:43 +0000 (14:07 +0100)
- Update to https://github.com/oetiker/rrdtool-1.x/commit/2154d02

src/rrd_graph.c

index d0d3d6b63151950aba314c756f5d711ac4a7f02c..cdff5ea3e0c8857c9fe23bf14af8cefb2d973b6a 100644 (file)
@@ -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]);