summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-04 10:32:09 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-04 10:32:09 +0000
commit08feda316dd9ec1f2afb1812caf9c5631c858066 (patch)
tree722117fb19a31dbe191c4a46c55941223a1dfe82 /io.c
parent33276f1e214ef6963022ec9dbc1c3f74dbf68225 (diff)
* typo, too. orz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index b357df2..37a30fa 100644
--- a/io.c
+++ b/io.c
@@ -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(str)->len-1);
+ VALUE tmp = rb_str_new(str+1, RSTRING(argv[0])->len-1);
OBJ_INFECT(tmp, argv[0]);
argv[0] = tmp;
return rb_io_s_popen(argc, argv, rb_cIO);