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 | 33276f1e214ef6963022ec9dbc1c3f74dbf68225 (patch) | |
tree | 858a0576c17f74afed4b3bada8ec3d609cde412e /io.c | |
parent | 9adcea740505650a3658010df26f56ff0bc9b29e (diff) |
* io.c (rb_f_open): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/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); |