projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
It's nice and simple, the error checker for the PRINT stuff which is
[rrdtool.git]
/
src
/
rrd_graph.c
diff --git
a/src/rrd_graph.c
b/src/rrd_graph.c
index
074ad44
..
55f6cee
100644
(file)
--- a/
src/rrd_graph.c
+++ b/
src/rrd_graph.c
@@
-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; }