summaryrefslogtreecommitdiffstats
path: root/ext/nkf
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-23 09:56:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-23 09:56:56 +0000
commit8c56da355d82e19af8adf137179c75a84906aa7f (patch)
tree673e871d48711a8937e7458d9999a860b35d7ec0 /ext/nkf
parentf87151b2b000dfbaac2c9932b7f7636a944569d0 (diff)
downloadruby-8c56da355d82e19af8adf137179c75a84906aa7f.tar.gz
ruby-8c56da355d82e19af8adf137179c75a84906aa7f.tar.xz
ruby-8c56da355d82e19af8adf137179c75a84906aa7f.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@4432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/nkf')
-rw-r--r--ext/nkf/nkf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/nkf/nkf.c b/ext/nkf/nkf.c
index c71a5119a..ca6de73e1 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;
}