summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2b93ce7)
raw | patch | inline | side by side (parent: 2b93ce7)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 28 Sep 2010 15:44:19 +0000 (15:44 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 28 Sep 2010 15:44:19 +0000 (15:44 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2132 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 64685828158954b587da1be9c2e4ce59c020922f..6dc229b8691d1625404ea3ca54311f7d68a6adca 100644 (file)
--- a/bindings/ruby/main.c
+++ b/bindings/ruby/main.c
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));