diff --git a/ext/dl/sym.c b/ext/dl/sym.c index 48b9dcfb27..aab581b543 100644 --- a/ext/dl/sym.c +++ b/ext/dl/sym.c @@ -261,7 +261,7 @@ rb_dlsym_inspect(VALUE self) str = dlmalloc(str_size); snprintf(str, str_size - 1, "#", - sym, sym->func, RSTRING(proto)->len); + sym, sym->func, RSTRING(proto)->ptr); val = rb_tainted_str_new2(str); dlfree(str);