[ruby-cvs:65213] nobu:r58042 (trunk): string.c: use the usable size

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Mar 21 14:28:38 JST 2017


nobu	2017-03-21 14:28:38 +0900 (Tue, 21 Mar 2017)

  New Revision: 58042

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58042

  Log:
    string.c: use the usable size
    
    * string.c (rb_str_change_terminator_length): when called after
      the content has been copied, old terminator length no longer
      makes sense.  use the whole usable size instead of capacity
      without terminator.  [ruby-core:80257] [Bug #13339]

  Modified files:
    trunk/string.c


More information about the ruby-cvs mailing list