diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | thread.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed May 4 07:33:00 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * thread.c (rb_fd_copy): fix wrong argument.This issue was pointed + out by Eric Wong. [ruby-core:35982] + Tue May 3 20:29:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * test/fileutils/test_fileutils.rb (TestFileUtils#test_chmod_symbol_mode): @@ -2389,7 +2389,7 @@ rb_fd_copy(rb_fdset_t *dst, const rb_fdset_t *src) size = sizeof(fd_set); dst->maxfd = src->maxfd; dst->fdset = xrealloc(dst->fdset, size); - memcpy(dst->fdset, src, size); + memcpy(dst->fdset, src->fdset, size); } int |