From: Will Hawkins Date: Fri, 22 Jun 2012 18:45:45 +0000 (-0400) Subject: Fix out-of-bound index in rrdtool.c X-Git-Tag: collectd-5.0.5~7^2~7 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9343b7456d7b846f657a1d0566cb6732f0f2ea50;p=collectd.git Fix out-of-bound index in rrdtool.c Fix a reference to argv[1] that is (always?) outside the bounds of the argv array. It happens during a log statement that seems to want to actually refer to the rrd filename. --- diff --git a/src/rrdtool.c b/src/rrdtool.c index 4655b96e..2b384d09 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -185,7 +185,7 @@ static int srrd_update (char *filename, char *template, if (status != 0) { WARNING ("rrdtool plugin: rrd_update_r failed: %s: %s", - argv[1], rrd_get_error ()); + filename, rrd_get_error ()); } sfree (new_argv);