diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-23 04:24:39 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-23 04:24:39 +0000 |
commit | c60fb7c72cc7f2659a2118e401926fa8d9ed1a4b (patch) | |
tree | 952fc35d2346ac5518084e0cdacd077bc4045629 /eval.c | |
parent | db37bfadb2eebb53170b93a92c81cef0c6011aaa (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;\ |