Revision
584
Author
lsansonetti@apple.com
Date
2008-09-08 17:19:43 -0700 (Mon, 08 Sep 2008)

Log Message

fix Symbol's -[getCharacters:range]

Modified Paths

Diff

Modified: MacRuby/trunk/string.c (583 => 584)


--- MacRuby/trunk/string.c	2008-09-08 22:25:28 UTC (rev 583)
+++ MacRuby/trunk/string.c	2008-09-09 00:19:43 UTC (rev 584)
@@ -5246,7 +5246,7 @@
     if (range.location + range.length > RSYMBOL(rcv)->len)
 	rb_bug("[Symbol getCharacters:range:] out of bounds");
 
-    for (i = range.location; i < range.length; i++) {
+    for (i = range.location; i < range.location + range.length; i++) {
 	*buffer = RSYMBOL(rcv)->str[i];
 	buffer++;
     }