diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-23 09:56:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-23 09:56:56 +0000 |
commit | 5f5c0a0cf45e184c66285b095053cfc766d9c712 (patch) | |
tree | 673e871d48711a8937e7458d9999a860b35d7ec0 /ext/nkf | |
parent | 197ce26993041e9f9a89069c0359bd1a60218201 (diff) |
* 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
Diffstat (limited to 'ext/nkf')
-rw-r--r-- | ext/nkf/nkf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/nkf/nkf.c b/ext/nkf/nkf.c index c71a5119aa..ca6de73e10 100644 --- a/ext/nkf/nkf.c +++ b/ext/nkf/nkf.c @@ -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; } |