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.4.9~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11090488bf5146feb3693ef24145d4ef5a2969c0;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 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(