From: Tobias Oetiker Date: Tue, 16 Sep 2014 09:38:48 +0000 (+0200) Subject: the %s portion of the printf format is optional X-Git-Tag: v1.5.0-rc1~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=111fa387430e7dd093052c1f8b0382381f6e86c1;p=thirdparty%2Frrdtool-1.x.git the %s portion of the printf format is optional --- 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(