From: Tobias Oetiker Date: Tue, 16 Sep 2014 08:37:42 +0000 (+0200) Subject: do not capture X-Git-Tag: v1.5.0-rc1~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cb82d4539fd3af16590b27f6e37c1c4a5287acd0;p=thirdparty%2Frrdtool-1.x.git do not capture --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 3d1d63b2..2737692e 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[eEfF]" int bad_format_axis(char *fmt){ return bad_format_check("^" SAFE_STRING FLOAT_STRING SAFE_STRING "$",fmt);