Revision
3728
Author
lsansonetti@apple.com
Date
2010-03-09 19:07:55 -0800 (Tue, 09 Mar 2010)

Log Message

make rb_bstr_resize set the length too

Modified Paths

Diff

Modified: MacRuby/branches/icu/string.c (3727 => 3728)


--- MacRuby/branches/icu/string.c	2010-03-10 02:28:39 UTC (rev 3727)
+++ MacRuby/branches/icu/string.c	2010-03-10 03:07:55 UTC (rev 3728)
@@ -5469,6 +5469,7 @@
 {
     assert(IS_BSTR(str));
     str_resize_bytes(RSTR(str), capa);
+    RSTR(str)->length_in_bytes = capa;
 }
 
 void