]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
fix character class definition
authorTobias Oetiker <tobi@oetiker.ch>
Tue, 16 Sep 2014 08:33:55 +0000 (10:33 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Tue, 16 Sep 2014 08:33:55 +0000 (10:33 +0200)
src/rrd_graph.c

index 0c15014182c3aa2b43379e29a48f0a58be1a343a..5e734f3e993329c26157c31a6c0f072653439e24 100644 (file)
@@ -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);