summaryrefslogtreecommitdiffstats
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
commit9464bf0584124d087aa62ff89b032918f52166bd (patch)
tree41af33787f4dc82fb2e48291aff13b7c4e585e96
parente2e7d1c718233bce37c6ca4cf42cd5f1efd73cce (diff)
downloadruby-9464bf0584124d087aa62ff89b032918f52166bd.tar.gz
ruby-9464bf0584124d087aa62ff89b032918f52166bd.tar.xz
ruby-9464bf0584124d087aa62ff89b032918f52166bd.zip
corrected the allocation size.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 4a3166098..df8089e5a 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;