[macruby-changes] [4056] MacRuby/trunk/string.c

source_changes at macosforge.org source_changes at macosforge.org
Sun May 9 04:32:04 PDT 2010


Revision: 4056
          http://trac.macosforge.org/projects/ruby/changeset/4056
Author:   vincent.isambart at gmail.com
Date:     2010-05-09 04:32:03 -0700 (Sun, 09 May 2010)
Log Message:
-----------
added a safeguard just in case

Modified Paths:
--------------
    MacRuby/trunk/string.c

Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c	2010-05-09 07:50:41 UTC (rev 4055)
+++ MacRuby/trunk/string.c	2010-05-09 11:32:03 UTC (rev 4056)
@@ -1263,6 +1263,7 @@
 static void inline
 str_concat_ascii_cstr(rb_str_t *self, char *cstr)
 {
+    str_make_data_binary(self);
     long len = strlen(cstr);
     if (self->encoding->ascii_compatible) {
 	str_concat_bytes(self, cstr, len);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100509/219b82d8/attachment.html>


More information about the macruby-changes mailing list