diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-19 06:51:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-19 06:51:52 +0000 |
commit | 284d42ca251cb73a939032cedf834c995b1f6145 (patch) | |
tree | cccfc8c290d772b2b933e8f858a0f0a76674e61b /ruby.c | |
parent | 5ed396ed0cdc173b315006c0edb68643dc84bde6 (diff) | |
download | ruby-284d42ca251cb73a939032cedf834c995b1f6145.tar.gz ruby-284d42ca251cb73a939032cedf834c995b1f6145.tar.xz ruby-284d42ca251cb73a939032cedf834c995b1f6145.zip |
* ruby.c (process_options): get rid of warning on DOSISH.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |