From 88e9831a25dad958793ec609cc09d2925ffaa551 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 14 Apr 2009 13:55:29 +0000 Subject: [PATCH] make ruby bindings compile with newer ruby versions ... fix for #217 patch provided by rrd trac user. git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@1791 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/bindings/ruby/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/bindings/ruby/main.c b/program/bindings/ruby/main.c index 6b6989a9..10b455e9 100644 --- a/program/bindings/ruby/main.c +++ b/program/bindings/ruby/main.c @@ -32,7 +32,7 @@ string_arr string_arr_new( int i; Check_Type(rb_strings, T_ARRAY); - a.len = RARRAY(rb_strings)->len + 1; + a.len = RARRAY_LEN(rb_strings) + 1; a.strings = malloc(a.len * sizeof(char *)); a.strings[0] = "dummy"; /* first element is a dummy element */ -- 2.30.2