From: oetiker Date: Tue, 28 Sep 2010 15:44:19 +0000 (+0000) Subject: fix ruby bindings to be compatible with curent ruby implementations fix for #279 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0bccb1542be6449a3346cced2674fcbe942510f5;p=rrdtool-all.git fix ruby bindings to be compatible with curent ruby implementations fix for #279 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@2132 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/bindings/ruby/main.c b/program/bindings/ruby/main.c index 64685828..6dc229b8 100644 --- a/program/bindings/ruby/main.c +++ b/program/bindings/ruby/main.c @@ -48,7 +48,7 @@ string_arr string_arr_new( switch (TYPE(v)) { case T_STRING: - a.strings[i + 1] = strdup(STR2CSTR(v)); + a.strings[i + 1] = strdup(StringValuePtr(v)); break; case T_FIXNUM: snprintf(buf, 63, "%d", FIX2INT(v));