rrdtool/rrdtool-1.3.0-beta4-fix-rrd_update-in-php-bindings.patch
2008-04-06 03:41:21 +00:00

13 lines
417 B
Diff

diff -Naurp rrdtool.orig/php4/rrdtool.c rrdtool/php4/rrdtool.c
--- rrdtool.orig/php4/rrdtool.c 2007-06-16 01:32:23.000000000 -0400
+++ rrdtool/php4/rrdtool.c 2008-04-05 23:37:04.000000000 -0400
@@ -381,7 +381,7 @@ PHP_FUNCTION(rrd_update)
argv[3] = estrdup(opt->value.str.val);
optind = 0; opterr = 0;
- if ( rrd_update(3, &argv[1]) != -1 )
+ if ( rrd_update(2, &argv[2]) != -1 )
{
RETVAL_TRUE;
}