[ruby-cvs:62721] ngoto:r55557 (trunk): * string.c (str_fill_term): When termlen increases, re-allocation
ngoto at ruby-lang.org
ngoto at ruby-lang.org
Sat Jul 2 02:32:22 JST 2016
ngoto 2016-07-02 02:32:21 +0900 (Sat, 02 Jul 2016)
New Revision: 55557
https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55557
Log:
* string.c (str_fill_term): When termlen increases, re-allocation
of memory for termlen should always be needed.
In this fix, if possible, decrease capa instead of realloc.
[Bug #12536] [ruby-dev:49699]
Modified files:
trunk/ChangeLog
trunk/string.c
More information about the ruby-cvs
mailing list