From: Tobias Oetiker Date: Tue, 16 Sep 2014 08:33:55 +0000 (+0200) Subject: fix character class definition X-Git-Tag: v1.4.9~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e69800fb96b36e295872790911dc392eec4c54f2;p=thirdparty%2Frrdtool-1.x.git fix character class definition --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 0c150141..5e734f3e 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -4818,7 +4818,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);