Bug #3548 ยป string.c.patch
| string.c | ||
|---|---|---|
|
switch (ret) {
|
||
|
case econv_destination_buffer_full:
|
||
|
/* destination buffer short */
|
||
|
len *= 2;
|
||
|
len = len < 2 ? 2 : len * 2;
|
||
|
rb_str_resize(newstr, len);
|
||
|
goto retry;
|
||