]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
#914, rrdtool graph with --title segfaults
authorAlexander Zangerl <alexz@opmantek.com>
Tue, 30 Oct 2018 03:09:26 +0000 (13:09 +1000)
committerTobias Oetiker <tobi@oetiker.ch>
Thu, 1 Nov 2018 10:41:22 +0000 (11:41 +0100)
src/rrd_graph.c

index bb0490045ccd93925177213008d0088105ce7f01..99f135b08b62c342ec9f7d6f3cf70911606e5cb3 100644 (file)
@@ -6195,7 +6195,7 @@ image_title_t graph_title_split(
         delim = 0;
 
         while (delim == 0 && start + pos < length) {
-            for(int i=0; i<6;i++) {
+            for(int i=0; i<4;i++) {
                 int delim_size = strlen(delims[i]);
                 int delim_match = strncasecmp(title+start+pos, delims[i], delim_size);