diff options
Diffstat (limited to 'ext/nkf/nkf.c')
-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; } |