diff --git a/ChangeLog b/ChangeLog index 8efc121ba3..efbe1af8cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jul 13 20:46:00 2010 Nobuyoshi Nakada + + * ext/dl/handle.c (rb_dlhandle_close): should not pass a dynamic + string to rb_raise directly. + Tue Jul 13 12:04:57 2010 NARUSE, Yui * missing/close.c: keep original errno. diff --git a/ext/dl/handle.c b/ext/dl/handle.c index 3e3b91a8c9..a450e6bac5 100644 --- a/ext/dl/handle.c +++ b/ext/dl/handle.c @@ -70,7 +70,7 @@ rb_dlhandle_close(VALUE self) /* Check dlclose for successful return value */ if(ret) { #if defined(HAVE_DLERROR) - rb_raise(rb_eDLError, dlerror()); + rb_raise(rb_eDLError, "%s", dlerror()); #else rb_raise(rb_eDLError, "could not close handle"); #endif