diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -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. @@ -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; |