projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix ruby bindings to be compatible with curent ruby implementations fix for #279
[rrdtool.git]
/
bindings
/
ruby
/
main.c
diff --git
a/bindings/ruby/main.c
b/bindings/ruby/main.c
index
6468582
..
6dc229b
100644
(file)
--- a/
bindings/ruby/main.c
+++ b/
bindings/ruby/main.c
@@
-48,7
+48,7
@@
string_arr string_arr_new(
switch (TYPE(v)) {
case T_STRING:
switch (TYPE(v)) {
case T_STRING:
- a.strings[i + 1] = strdup(S
TR2CSTR
(v));
+ a.strings[i + 1] = strdup(S
tringValuePtr
(v));
break;
case T_FIXNUM:
snprintf(buf, 63, "%d", FIX2INT(v));
break;
case T_FIXNUM:
snprintf(buf, 63, "%d", FIX2INT(v));