From: Soner Tari Date: Sat, 18 Mar 2017 21:00:34 +0000 (+0200) Subject: Fix oetiker/rrdtool-1.x#774 X-Git-Tag: v1.7.0~6^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F775%2Fhead;p=thirdparty%2Frrdtool-1.x.git Fix oetiker/rrdtool-1.x#774 --- diff --git a/src/rrd_cgi.c b/src/rrd_cgi.c index d57eecfe..7165bea1 100644 --- a/src/rrd_cgi.c +++ b/src/rrd_cgi.c @@ -1129,7 +1129,7 @@ static char *scanargs( } /* check if our argument array is still large enough */ - if (argc == argsz) { + if (argc == argsz - 2) { /* resize argument array */ argsz *= 2; argv = (char **) rrd_realloc(argv, argsz * sizeof(char *));