From: Takaaki Tateishi Date: 2005-12-15T01:43:07+09:00 Subject: [ruby-dev:28034] dlモジュールの修正の可否 立石です。 ruby-1.8のdlにバグがあり、以下の修正を加えたいと思います。 修正しても良いでしょうか? -- Takaaki Tateishi Index: dl.c =================================================================== RCS file: /var/cvs/src/ruby/ext/dl/dl.c,v retrieving revision 1.20.2.4 diff -u -r1.20.2.4 dl.c --- dl.c 29 Sep 2005 01:29:24 -0000 1.20.2.4 +++ dl.c 14 Dec 2005 16:39:08 -0000 @@ -147,7 +147,7 @@ { char *newstr; - newstr = (char*)dlmalloc(strlen(str)); + newstr = (char*)dlmalloc(strlen(str)+1); strcpy(newstr,str); return newstr;