X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=program%2Fsrc%2Frrd_cgi.c;h=9c81c1543cae8d00df10b29d273a303a2ba1baec;hb=fcd317a0447e81bcb5ddd51177331c8c50b25dc2;hp=0c4f6de7be3ee91dc9ec9f330acbc8198f08410d;hpb=bdd9921d373849e129247adb6a25c0397c59e8d3;p=rrdtool-all.git diff --git a/program/src/rrd_cgi.c b/program/src/rrd_cgi.c index 0c4f6de7..9c81c154 100644 --- a/program/src/rrd_cgi.c +++ b/program/src/rrd_cgi.c @@ -253,6 +253,7 @@ char* includefile(long argc, char **args){ } } +static char* rrdstrip(char *buf){ char *start; if (buf == NULL) return NULL; @@ -442,6 +443,7 @@ char* printtimenow(long argc, char **args) { } /* scan aLine until an unescaped '>' arives */ +static char* scanargs(char *aLine, long *argc, char ***args) { char *getP, *putP; @@ -459,7 +461,7 @@ char* scanargs(char *aLine, long *argc, char ***args) getP = aLine; putP = aLine; while (*getP && !( !Quote && (braket == 0) && ((*getP) == '>'))){ - if (*getP < ' ') *getP = ' '; /*remove all special chars*/ + if ((unsigned)*getP < ' ') *getP = ' '; /*remove all special chars*/ switch (*getP) { case ' ': if (Quote){