From 9464bf0584124d087aa62ff89b032918f52166bd Mon Sep 17 00:00:00 2001 From: ttate Date: Fri, 16 Dec 2005 13:32:06 +0000 Subject: corrected the allocation size. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/dl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit