1
0
Fork 0
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:
nobu 2003-08-23 09:56:56 +00:00
parent 197ce26993
commit 5f5c0a0cf4
2 changed files with 244 additions and 237 deletions

View file

@ -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;
}