aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 919a2eba24..594d728e9f 100644
--- a/ruby.c
+++ b/ruby.c
@@ -811,7 +811,8 @@ proc_options(int argc, char **argv)
script_node = NEW_BEGIN(0);
}
#if defined DOSISH || defined __CYGWIN__
- translate_char(script, '\\', '/');
+ /* assume that we can change argv[n] if never change its length. */
+ translate_char((char *)script, '\\', '/');
#endif
argc--; argv++;
}