From 11090488bf5146feb3693ef24145d4ef5a2969c0 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 685f7e9a..359fd8ab 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -4825,7 +4825,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.2