summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-24 05:33:17 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-24 05:33:17 +0000
commitb0d5064d4a371d6e0bca557dec9da92fe2f36286 (patch)
tree8805ba46dd448471f193c22a5b302ff7ad72fb5f /ext
parent9d58823a16c941544ed80d14864b91be138866bc (diff)
merges r28625 from trunk into ruby_1_9_2.
-- * ext/dl/handle.c (rb_dlhandle_close): should not pass a dynamic string to rb_raise directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dl/handle.c2
1 files changed, 1 insertions, 1 deletions
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