From: Tobias Oetiker Date: Tue, 16 Sep 2014 09:31:11 +0000 (+0200) Subject: allow gG format X-Git-Tag: v1.5.0-rc1~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e46daf9c4dfbfd56c2333c55178982a06797ac81;p=thirdparty%2Frrdtool-1.x.git allow gG format --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 2737692e..51afbf0e 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -5082,7 +5082,7 @@ static int bad_format_check(const char *pattern, char *fmt) { int bad_format_imginfo(char *fmt){ return bad_format_check("^" SAFE_STRING "%s" SAFE_STRING "%lu" SAFE_STRING "%lu" SAFE_STRING "$",fmt); } -#define FLOAT_STRING "%[-+ 0#]?[0-9]*(?:[.][0-9]+)?l[eEfF]" +#define FLOAT_STRING "%[-+ 0#]?[0-9]*(?:[.][0-9]+)?l[eEfFgG]" int bad_format_axis(char *fmt){ return bad_format_check("^" SAFE_STRING FLOAT_STRING SAFE_STRING "$",fmt);