From 2154d02b7db575316c29c9b39d0ef20686d20ce1 Mon Sep 17 00:00:00 2001 From: Alexander Zangerl Date: Thu, 1 Nov 2018 09:40:03 +1000 Subject: [PATCH] minor adjustment to patch for #914 --- src/rrd_graph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]); -- 2.47.2