aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--io.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7fa28a58ef..829aa472a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Aug 20 18:37:20 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (open_key_args): meaningless MEMCPY removed.
+
Wed Aug 20 18:30:58 2008 Tanaka Akira <akr@fsij.org>
* io.c (prep_io) [cygwin]: use FMODE_BINMODE instead of O_BINARY.
diff --git a/io.c b/io.c
index 53d6bcb136..3f67d8093c 100644
--- a/io.c
+++ b/io.c
@@ -6649,7 +6649,6 @@ open_key_args(int argc, VALUE *argv, struct foreach_arg *arg)
args = rb_ary_new2(RARRAY_LEN(v)+1);
rb_ary_push(args, argv[0]);
rb_ary_concat(args, v);
- MEMCPY(RARRAY_PTR(args)+1, RARRAY_PTR(v), VALUE, RARRAY_LEN(v));
arg->io = rb_io_open_with_args(RARRAY_LEN(args), RARRAY_PTR(args));
return;