X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_graph_helper.c;h=793163c94751af16a946b05e854d5a75dc23c841;hb=7a9d68be2cc25c1245e667d5e81c6efabeeebc28;hp=bdf35262c0d854c2b5d2cd15b482eab4b595aa15;hpb=9e6db622e8756105c1322481b34650ecbe15da1a;p=rrdtool.git diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index bdf3526..793163c 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.2.14 Copyright by Tobi Oetiker, 1997-2006 + * RRDtool 1.2.15 Copyright by Tobi Oetiker, 1997-2006 **************************************************************************** * rrd_graph_helper.c commandline parser functions * this code initially written by Alex van den Bogaerdt @@ -133,6 +133,10 @@ rrd_parse_find_gf(const char *const line, unsigned int *const eaten, graph_desc_ rrd_set_error("Malformed '%s' command in line '%s'\n",&line[*eaten],line); return 1; } + if (line[*eaten] == '\0') { + rrd_set_error("Expected some arguments after '%s'\n",line); + return 1; + } return 0; }