15 lines
432 B
Text
15 lines
432 B
Text
$NetBSD: patch-aa,v 1.3 2010/09/10 07:31:45 taca Exp $
|
|
|
|
Use modern Ruby API.
|
|
|
|
--- ext/ming/mingc/swfbitmap.c.orig 2008-03-09 17:40:50.000000000 +0000
|
|
+++ ext/ming/mingc/swfbitmap.c
|
|
@@ -58,7 +58,7 @@ rb_SWFBitmap_s_new(argc, argv, self)
|
|
RAISE_NOF(filename);
|
|
|
|
if(NIL_P(a)) {
|
|
- len = RSTRING(f)->len;
|
|
+ len = RSTRING_LEN(f);
|
|
if(len > 5) {
|
|
ext = &filename[len - 5];
|
|
if(strncmp(ext, ".jpeg", 5) == 0) {
|