From: Alexander Zangerl Date: Tue, 30 Oct 2018 03:09:26 +0000 (+1000) Subject: #914, rrdtool graph with --title segfaults X-Git-Tag: v1.7.1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abba6359a52922b40a517a77c8def46df17cd156;p=thirdparty%2Frrdtool-1.x.git #914, rrdtool graph with --title segfaults --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index bb049004..99f135b0 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -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);