summaryrefslogtreecommitdiffstats
path: root/ext/dl
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-14 14:33:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-14 14:33:10 +0000
commit153c4913bc3772505640f758240c4870e6ba55e4 (patch)
tree35446923bc5438f4f164d2b8593a328293834bf7 /ext/dl
parent1a2cf38b56a94c867e7836639a03311a7a54cdfa (diff)
downloadruby-153c4913bc3772505640f758240c4870e6ba55e4.tar.gz
ruby-153c4913bc3772505640f758240c4870e6ba55e4.tar.xz
ruby-153c4913bc3772505640f758240c4870e6ba55e4.zip
* parse.y (parser_warning, parser_warn): some error message may
contain format specifiers. a patch from Akinori MUSHA <knu at iDaemons.org>. [ruby-dev:29657] * regparse.c (onig_rb_warning, onig_rb_warn): ditto. * ext/bigdecimal/bigdecimal.c (VpException): ditto. * ext/dl/handle.c (rb_dlhandle_initialize): ditto. * ext/gdbm/gdbm.c (rb_gdbm_fatal): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r--ext/dl/handle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c
index 3e644465c..24269dfd7 100644
--- a/ext/dl/handle.c
+++ b/ext/dl/handle.c
@@ -70,12 +70,12 @@ rb_dlhandle_initialize(int argc, VALUE argv[], VALUE self)
ptr = dlopen(clib, cflag);
#if defined(HAVE_DLERROR)
if( !ptr && (err = dlerror()) ){
- rb_raise(rb_eDLError, err);
+ rb_raise(rb_eDLError, "%s", err);
}
#else
if( !ptr ){
err = dlerror();
- rb_raise(rb_eDLError, err);
+ rb_raise(rb_eDLError, "%s", err);
}
#endif
Data_Get_Struct(self, struct dl_handle, dlhandle);