From 3721df734c9ad1be0bbd64321329c1af405b289b Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 23 Aug 2008 01:49:56 +0000 Subject: [PATCH] * ext/pty/pty.c (pty_getpty): follow rb_io_t's path -> pathv change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/pty/pty.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1a640422f4..124328e943 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Aug 23 10:48:56 2008 Tanaka Akira + + * ext/pty/pty.c (pty_getpty): follow rb_io_t's path -> pathv change. + Sat Aug 23 10:42:52 2008 Tanaka Akira * io.c (check_pipe_command): extracted from rb_f_open and rb_io_open. diff --git a/ext/pty/pty.c b/ext/pty/pty.c index a2cf175673..e0d571a581 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -415,11 +415,11 @@ pty_getpty(int argc, VALUE *argv, VALUE self) rfptr->mode = rb_io_mode_flags("r"); rfptr->fd = info.fd; - rfptr->path = strdup(SlaveName); + rfptr->pathv = rb_obj_freeze(rb_str_new_cstr(SlaveName)); wfptr->mode = rb_io_mode_flags("w") | FMODE_SYNC; wfptr->fd = dup(info.fd); - wfptr->path = strdup(SlaveName); + wfptr->pathv = rfptr->pathv; res = rb_ary_new2(3); rb_ary_store(res,0,(VALUE)rport);