Commit d73a54d8 authored by Masaki Muranaka's avatar Masaki Muranaka

Use memcpy instead of strncpy

parent 8b6f6faf
......@@ -339,7 +339,7 @@ sym_inspect(mrb_state *mrb, mrb_value sym)
memcpy(RSTRING(str)->ptr+1, name, len);
if (!symname_p(name) || strlen(name) != len) {
str = mrb_str_dump(mrb, str);
strncpy(RSTRING(str)->ptr, ":\"", 2);
memcpy(RSTRING(str)->ptr, ":\"", 2);
}
return str;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment