diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-16 13:32:06 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-16 13:32:06 +0000 |
commit | 1d120e283dd4d0c74335f6ef6990b21aef32266f (patch) | |
tree | 41af33787f4dc82fb2e48291aff13b7c4e585e96 /ext/dl/dl.c | |
parent | bd0d0153a0516336e471245f66434308134db229 (diff) |
corrected the allocation size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/dl.c')
-rw-r--r-- | ext/dl/dl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/dl.c b/ext/dl/dl.c index 4a31660980..df8089e5aa 100644 --- a/ext/dl/dl.c +++ b/ext/dl/dl.c @@ -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; |