ruby-changes:54777
From: glass <ko1@a...>
Date: Mon, 4 Feb 2019 08:31:01 +0900 (JST)
Subject: [ruby-changes:54777] glass:r66996 (trunk): io.c: get src_size from stp. Fix r66995.
glass 2019-02-04 08:30:56 +0900 (Mon, 04 Feb 2019) New Revision: 66996 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66996 Log: io.c: get src_size from stp. Fix r66995. Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 66995) +++ io.c (revision 66996) @@ -10863,6 +10863,7 @@ nogvl_copy_file_range(struct copy_stream https://github.com/ruby/ruby/blob/trunk/io.c#L10863 if (!S_ISREG(stp->src_stat.st_mode)) return 0; + src_size = stp->src_stat.st_size; src_offset = stp->src_offset; if (src_offset >= (off_t)0) { src_offset_ptr = &src_offset; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/