* io.c (open_key_args): meaningless MEMCPY removed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-08-20 09:38:43 +00:00
parent 2901137a81
commit a5c0ee40b1
2 changed files with 4 additions and 1 deletions

View file

@ -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.

1
io.c
View file

@ -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;