summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 11bde7e)
raw | patch | inline | side by side (parent: 11bde7e)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 14 Apr 2009 13:55:29 +0000 (13:55 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 14 Apr 2009 13:55:29 +0000 (13:55 +0000) |
patch provided by rrd trac user.
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1791 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1791 a5681a0c-68f1-0310-ab6d-d61299d08faa
bindings/ruby/main.c | patch | blob | history |
diff --git a/bindings/ruby/main.c b/bindings/ruby/main.c
index 6b6989a931a99d32aa9049592e3bdebd4bd020db..10b455e9e3ed95e20d0a6258cbc9ba01b5194419 100644 (file)
--- a/bindings/ruby/main.c
+++ b/bindings/ruby/main.c
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 */