freebsd-ports/japanese/tomoe/files/patch-bindings_ruby_tomoe-rb-char.c
Steve Wills 77deb46b48 - Fix build with Ruby 1.9
PR:		ports/159150
Submitted by:	swills (me)
Approved by:	maintainer timeout (ume; >2 weeks)
2011-08-11 23:42:24 +00:00

11 lines
431 B
C

--- bindings/ruby/tomoe-rb-char.c.orig 2011-07-24 02:20:26.000000000 +0000
+++ bindings/ruby/tomoe-rb-char.c 2011-07-24 02:22:22.000000000 +0000
@@ -13,7 +13,7 @@
if (NIL_P(xml)) {
chr = tomoe_char_new();
} else {
- chr = tomoe_char_new_from_xml_data(RVAL2CSTR(xml), RSTRING(xml)->len);
+ chr = tomoe_char_new_from_xml_data(RVAL2CSTR(xml), RSTRING_LEN(xml));
}
G_INITIALIZE(self, chr);