From 111fa387430e7dd093052c1f8b0382381f6e86c1 Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Tue, 16 Sep 2014 11:38:48 +0200 Subject: [PATCH] the %s portion of the printf format is optional --- src/rrd_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 51afbf0e..13fcc86f 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -5089,7 +5089,7 @@ int bad_format_axis(char *fmt){ } int bad_format_print(char *fmt){ - return bad_format_check("^" SAFE_STRING FLOAT_STRING SAFE_STRING "%s" SAFE_STRING "$",fmt); + return bad_format_check("^" SAFE_STRING FLOAT_STRING SAFE_STRING "(?:%s)?" SAFE_STRING "$",fmt); } int vdef_parse( -- 2.47.3