1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

corrected the allocation size.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ttate 2005-12-16 13:32:06 +00:00
parent bd0d0153a0
commit 1d120e283d

View file

@ -147,7 +147,7 @@ dlstrdup(const char *str)
{
char *newstr;
newstr = (char*)dlmalloc(strlen(str));
newstr = (char*)dlmalloc(strlen(str)+1);
strcpy(newstr,str);
return newstr;