summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-19 06:51:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-19 06:51:52 +0000
commite5bfdb8391b3232c2b682e7eb19e99d85c3c1e9e (patch)
treecccfc8c290d772b2b933e8f858a0f0a76674e61b /ruby.c
parent20a745f1cfab56332efa7a17a7d232388a3671c0 (diff)
* ruby.c (process_options): get rid of warning on DOSISH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index ee21195b95..aeb853e5d3 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1281,7 +1281,7 @@ process_options(VALUE arg)
opt->script_name = rb_str_new_cstr(opt->script);
opt->script = RSTRING_PTR(opt->script_name);
#if defined DOSISH || defined __CYGWIN__
- translate_char(opt->script, '\\', '/');
+ translate_char(RSTRING_PTR(opt->script_name), '\\', '/');
#endif
rb_obj_freeze(opt->script_name);