From: Tobias Oetiker Date: Fri, 20 Jan 2017 08:00:10 +0000 (+0100) Subject: better use the right number of arguments in the format string X-Git-Tag: v1.7.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bbdc6bb24c7c8d4fa579fb77061581fbd1908c8;p=thirdparty%2Frrdtool-1.x.git better use the right number of arguments in the format string --- diff --git a/src/rrd_graph.h b/src/rrd_graph.h index be896ec4..a90a0ff6 100644 --- a/src/rrd_graph.h +++ b/src/rrd_graph.h @@ -46,7 +46,7 @@ #define NO_RRDTOOL_TAG 0x400 /* disable the rrdtool tag */ #define ALLOW_MISSING_DS 0x800 /* missing DS is not fatal */ -#define gdes_fetch_key(x) sprintf_alloc("%s:%s:%d:%d:%d:%d:%d",x.rrd,x.daemon,x.cf,x.cf_reduce,x.start_orig,x.end_orig,x.step_orig,x.step) +#define gdes_fetch_key(x) sprintf_alloc("%s:%s:%d:%d:%d:%d:%d:%d",x.rrd,x.daemon,x.cf,x.cf_reduce,x.start_orig,x.end_orig,x.step_orig,x.step) enum tmt_en { TMT_SECOND = 0, TMT_MINUTE, TMT_HOUR, TMT_DAY, TMT_WEEK, TMT_MONTH, TMT_YEAR