From 50a1f9ffbb3ff159b34b4818143e51dfe8257edc Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 4 Jul 2006 12:50:30 +0000 Subject: * 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 --- ChangeLog | 4 ++++ ruby.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1df23beb11..03d0bc5759 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jul 4 21:48:56 2006 NAKAMURA Usaku + + * ruby.c (proc_options): supress warning on DOSISH. + Tue Jul 4 15:12:49 2006 Yukihiro Matsumoto * eval.c (rb_call): should not set prot_tag->blkid since it would 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++; } -- cgit v1.2.3