mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/nkf/nkf.c (rb_nkf_putchar): should use rb_str_resize() to just
resize a string, rb_str_cat() disallows NULL. [ruby-dev:21237] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
197ce26993
commit
5f5c0a0cf4
2 changed files with 244 additions and 237 deletions
|
@ -1,4 +1,10 @@
|
|||
Sat Aug 23 18:56:53 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/nkf/nkf.c (rb_nkf_putchar): should use rb_str_resize() to just
|
||||
resize a string, rb_str_cat() disallows NULL. [ruby-dev:21237]
|
||||
|
||||
Sat Aug 23 16:48:41 2003 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||
|
||||
* lib/irb/ruby-lex.rb: bug fix for "foo" !~ /bar/. [ruby-talk:79942]
|
||||
|
||||
Sat Aug 23 15:59:58 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
@ -7,6 +13,7 @@ Sat Aug 23 15:59:58 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|||
EXEC_TAG() for retry. [ruby-dev:21216]
|
||||
|
||||
Sat Aug 23 02:32:33 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_yield_splat): should check if "values" is array.
|
||||
|
||||
* enum.c (each_with_index_i): typo.
|
||||
|
|
|
@ -31,7 +31,7 @@ rb_nkf_putchar(c)
|
|||
{
|
||||
if (output_ctr >= o_len) {
|
||||
o_len += incsize;
|
||||
rb_str_cat(dst, 0, incsize);
|
||||
rb_str_resize(dst, o_len);
|
||||
output = RSTRING(dst)->ptr;
|
||||
incsize *= 2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue