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:
parent
bd0d0153a0
commit
1d120e283d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue