summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-04 12:50:30 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-04 12:50:30 +0000
commit50a1f9ffbb3ff159b34b4818143e51dfe8257edc (patch)
tree99124396ed21d9e42d901b6a7db74d6844bb531d /ruby.c
parent6243e4092053dd53f87fc00a7e5e8a6bb8bcac92 (diff)
* ruby.c (proc_options): supress warning on DOSISH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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++;
}