[DRE-maint] Bug#650605: update to 1.9.3

shawn shawnlandden at gmail.com
Tue Apr 3 06:50:47 UTC 2012


Try this

>From 26dd3b1d977e1f53c11ad81e743431693169faa8 Mon Sep 17 00:00:00 2001
From: Shawn Landden <shawnlandden at gmail.com>
Date: Mon, 2 Apr 2012 18:36:58 -0700
Subject: [PATCH] STR2CSTR has been deprecated since 1.8

---
 ext/glut/glut.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ext/glut/glut.c b/ext/glut/glut.c
index 1ddb4ce..c2c8d5d 100644
--- a/ext/glut/glut.c
+++ b/ext/glut/glut.c
@@ -93,7 +93,7 @@ static VALUE glut_Init( int argc, VALUE * argv, VALUE
obj)
        largc = RARRAY_LEN(orig_arg);
        largv = ALLOCA_N(char*, largc);
        for (i = 0; i < largc; i++)
-               largv[i] = STR2CSTR(RARRAY_PTR(orig_arg)[i]);
+               largv[i] = StringValuePtr(RARRAY_PTR(orig_arg)[i]);

        glutInit(&largc, largv);

-- 
1.7.9.1









More information about the Pkg-ruby-extras-maintainers mailing list