It's nice and simple, the error checker for the PRINT stuff which is
[rrdtool.git] / src / rrd_graph.c
index 074ad44..55f6cee 100644 (file)
@@ -3258,6 +3258,9 @@ int bad_format(char *fmt) {
                                ptr++;
                                n++;
                                if (*ptr == '\0') return 1;
+                               else if (*ptr == ' ') ptr++;
+                               else if (*ptr == '-') ptr++;
+                               else if (*ptr == '+') ptr++;                            
                                if (*ptr == 'e' || *ptr == 'f') { 
                                        ptr++; 
                                        } else { return 1; }