diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-04-09 18:04:08 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-04-09 18:04:08 +0000 |
commit | 178a2f7064af173ed2b223b9a1c70e77dd016e49 (patch) | |
tree | 16c6920c4e3a7a6abb9144fdd1c91ee166a7bbba /io.c | |
parent | 529bc6166cb3e6083678c278d8a871e803420804 (diff) |
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1744,8 +1744,8 @@ next_argv() next_p = 0; if (RARRAY(rb_argv)->len > 0) { filename = ary_shift(rb_argv); - fn = RSTRING(filename)->ptr; - if (RSTRING(filename)->len == 1 && fn[0] == '-') { + fn = STR2CSTR(filename); + if (strlen(fn) == 1 && fn[0] == '-') { file = rb_stdin; if (inplace) { rb_defout = rb_stdout; |