Commit b60baeda authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

replace strcpy by memcpy; close #383

parent fdc224ff
......@@ -553,7 +553,7 @@ attrsym(codegen_scope *s, mrb_sym a)
name = mrb_sym2name_len(s->mrb, a, &len);
name2 = codegen_palloc(s, len+1);
strcpy(name2, name);
memcpy(name2, name, len);
name2[len] = '=';
name2[len+1] = '\0';
......
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