summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-23 04:24:39 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-23 04:24:39 +0000
commitc60fb7c72cc7f2659a2118e401926fa8d9ed1a4b (patch)
tree952fc35d2346ac5518084e0cdacd077bc4045629 /eval.c
parentdb37bfadb2eebb53170b93a92c81cef0c6011aaa (diff)
* eval.c (SETUP_ARGS0): fixed memory corruption. [ruby-dev:28360]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index dc72e7425d..fb1e4006b2 100644
--- a/eval.c
+++ b/eval.c
@@ -2221,7 +2221,7 @@ copy_node_scope(node, rval)
if (argc > 0) {\
int i;\
n = anode;\
- argv = TMP_ALLOC(argc);\
+ argv = TMP_ALLOC(argc+extra);\
for (i=0;i<argc;i++) {\
argv[i] = rb_eval(self,n->nd_head);\
n=n->nd_next;\