From 9343b7456d7b846f657a1d0566cb6732f0f2ea50 Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Fri, 22 Jun 2012 14:45:45 -0400 Subject: [PATCH] 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. --- src/rrdtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0