summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-22 12:32:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-22 12:32:15 +0000
commitca823d61e79c6399913dbb02fc4fdd14e68e7d0b (patch)
treee0827237cd7cc3c88632efd2c1f0a0e91bbd06ec /ruby.c
parent06e1422b07516d2a396f8f8d4f7404c711d2c904 (diff)
* ruby.c (proc_options): -T consumes digits only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2490 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 6feda7d171..3e0f063a2d 100644
--- a/ruby.c
+++ b/ruby.c
@@ -555,10 +555,11 @@ proc_options(argc, argv)
if (*++s) {
v = scan_oct(s, 2, &numlen);
if (numlen == 0) v = 1;
+ s += numlen;
}
rb_set_safe_level(v);
}
- break;
+ goto reswitch;
case 'I':
forbid_setid("-I");