Project

General

Profile

Bug #2794 ยป 0001-sanity-DL-strdup.patch

kosaki (Motohiro KOSAKI), 02/27/2010 12:22 AM

View differences:

ext/dl/dl.c
rb_dl_strdup(VALUE self, VALUE str)
{
SafeStringValue(str);
return rb_dlptr_new(strdup(RSTRING(str)->ptr), RSTRING(str)->len, dlfree);
return rb_dlptr_new(strdup(RSTRING(str)->ptr), strlen(RSTRING(str)->ptr)+1, dlfree);
}
static VALUE
    (1-1/1)