diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-04 10:28:27 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-04 10:28:27 +0000 |
commit | 05fd5aa7124304ef5a0449ea23bf1c8008933e04 (patch) | |
tree | 858a0576c17f74afed4b3bada8ec3d609cde412e /io.c | |
parent | 0b0e8e8e3ee9e1c3323c67e4f0e685e16e663d6c (diff) | |
download | ruby-05fd5aa7124304ef5a0449ea23bf1c8008933e04.tar.gz ruby-05fd5aa7124304ef5a0449ea23bf1c8008933e04.tar.xz ruby-05fd5aa7124304ef5a0449ea23bf1c8008933e04.zip |
* io.c (rb_f_open): fix typo.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3007,7 +3007,7 @@ rb_f_open(argc, argv) char *str = StringValuePtr(argv[0]); if (str[0] == '|') { - VALUE tmp = rb_str_new(str+1, RSTRING(tmp)->len-1); + VALUE tmp = rb_str_new(str+1, RSTRING(str)->len-1); OBJ_INFECT(tmp, argv[0]); argv[0] = tmp; return rb_io_s_popen(argc, argv, rb_cIO); |