summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-16 13:32:06 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-16 13:32:06 +0000
commit1d120e283dd4d0c74335f6ef6990b21aef32266f (patch)
tree41af33787f4dc82fb2e48291aff13b7c4e585e96 /ext
parentbd0d0153a0516336e471245f66434308134db229 (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')
-rw-r--r--ext/dl/dl.c2
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;