summaryrefslogtreecommitdiff
path: root/ext/dl/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/handle.c')
-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 3e644465ca5..24269dfd78f 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);