]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Fix oetiker/rrdtool-1.x#774 775/head
authorSoner Tari <sonertari@gmail.com>
Sat, 18 Mar 2017 21:00:34 +0000 (23:00 +0200)
committerGitHub <noreply@github.com>
Sat, 18 Mar 2017 21:00:34 +0000 (23:00 +0200)
src/rrd_cgi.c

index d57eecfebced1b01f3e39b02da8c28941186c4f5..7165bea1563340a8976c6ea61aaabde4349c9b44 100644 (file)
@@ -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 *));