Skip to content

Commit

Permalink
use rb_str_buf_cat() instead of rb_str_cat()
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Apr 6, 2012
1 parent 1641827 commit a67e705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enumerator.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ inspect_enumerator(VALUE obj, VALUE dummy, int recur)
if (method_name[length-1] == ':') {
length--;
}
rb_str_cat(str, method_name, length);
rb_str_buf_cat(str, method_name, length);

if (e->args) {
long argc = RARRAY_LEN(e->args);
Expand Down

0 comments on commit a67e705

Please sign in to comment.