From: Alexander Zangerl Date: Wed, 31 Oct 2018 23:40:03 +0000 (+1000) Subject: minor adjustment to patch for #914 X-Git-Tag: v1.7.1~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2154d02;p=thirdparty%2Frrdtool-1.x.git minor adjustment to patch for #914 --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 108891fc..06731def 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -6183,7 +6183,7 @@ image_title_t graph_title_split( retval.lines = malloc((MAX_IMAGE_TITLE_LINES + 1 ) * sizeof(char *)); - char *delims[4] = { "\n", "\\n", "
", "
" }; + char *delims[] = { "\n", "\\n", "
", "
" }; // printf("unsplit title: %s\n", title); char *consumed = strdup(title); /* allocates copy */ @@ -6197,7 +6197,7 @@ image_title_t graph_title_split( as there's no guarantee that we'll find the earliest delimiter first! */ found_delim = 0; - for(unsigned int i=0; i < 4; i++) + for(unsigned int i=0; i < sizeof(delims); i++) { // printf("looking for delim '%s', in '%s'\n", delims[i], consumed); int delim_size = strlen(delims[i]);