diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-23 01:49:56 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-23 01:49:56 +0000 |
| commit | c2deb77dcb45dd6164e4ae30913dfaa19268768a (patch) | |
| tree | cd322ca0b6c2e8700b5f685cbe8cb7ca45ab8cc3 /ext | |
| parent | 54d6ed79d1b4a9d4aaa15892aa8925335ccc5929 (diff) | |
| download | ruby-c2deb77dcb45dd6164e4ae30913dfaa19268768a.tar.gz ruby-c2deb77dcb45dd6164e4ae30913dfaa19268768a.tar.xz ruby-c2deb77dcb45dd6164e4ae30913dfaa19268768a.zip | |
* ext/pty/pty.c (pty_getpty): follow rb_io_t's path -> pathv change.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/pty/pty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c index a2cf17567..e0d571a58 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); |
