mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
e2604c1550
Because it always allocate new string. Replace with the followings:
- Use `RSRING_PTR` if string is guaranteed to be null-terminated.
- Use `mrb_string_value_cstr` or `mrb_get_args("z")` if return value isn't
modified.