From a1363761f4c8a2da83d2bf7ee621481f91865f96 Mon Sep 17 00:00:00 2001 From: dearblue Date: Sat, 13 Jan 2018 23:37:42 +0900 Subject: [PATCH] =?UTF-8?q?LZ4::Decoder.read=20=E3=81=A7=E3=83=90=E3=83=83?= =?UTF-8?q?=E3=83=95=E3=82=A1=E9=A0=98=E5=9F=9F=E3=81=8C=E7=A2=BA=E4=BF=9D?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA=E3=81=8B=E3=81=A3?= =?UTF-8?q?=E3=81=9F=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ext/frameapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/frameapi.c b/ext/frameapi.c index 769019c..757008e 100644 --- a/ext/frameapi.c +++ b/ext/frameapi.c @@ -503,7 +503,7 @@ fdec_read_args(int argc, VALUE argv[], size_t *size, VALUE *buf) *size = NUM2SIZET(argv[0]); *buf = argv[1]; rb_check_type(*buf, RUBY_T_STRING); - rb_str_modify(*buf); + aux_str_reserve(*buf, *size); rb_str_set_len(*buf, 0); break; default: