From 284d42ca251cb73a939032cedf834c995b1f6145 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 19 Dec 2008 06:51:52 +0000 Subject: * 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 --- ruby.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index ee21195b9..aeb853e5d 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); -- cgit