aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--eval.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index acf017f056..eddd7caad0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Feb 23 13:23:03 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * eval.c (SETUP_ARGS0): fixed memory corruption. [ruby-dev:28360]
+
Wed Feb 22 21:16:55 2006 Tanaka Akira <akr@m17n.org>
* lib/pathname.rb (Pathname#each_filename): use split_names properly.
diff --git a/eval.c b/eval.c
index 536e5abddc..284a27102c 100644
--- a/eval.c
+++ b/eval.c
@@ -2103,7 +2103,7 @@ copy_node_scope(NODE *node, 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;\