Revision
123
Author
lsansonetti@apple.com
Date
2008-03-29 12:03:13 -0700 (Sat, 29 Mar 2008)

Log Message

fixed a regression in sflag parsing

Modified Paths

Diff

Modified: MacRuby/trunk/ruby.c (122 => 123)


--- MacRuby/trunk/ruby.c	2008-03-29 05:20:07 UTC (rev 122)
+++ MacRuby/trunk/ruby.c	2008-03-29 19:03:13 UTC (rev 123)
@@ -467,8 +467,9 @@
 	VALUE argv = rb_argv;
 
 	n = RARRAY_LEN(argv);
-	for (i = 0; i < n; i++) {
-	    VALUE v = RARRAY_AT(argv, i);
+	i = 0;
+	while (n > 0) {
+	    VALUE v = RARRAY_AT(argv, i++);
 	    char *s = StringValuePtr(v);
 	    char *p;
 	    int hyphen = Qfalse;