Permalink
Browse files

use rb_str_buf_cat() instead of rb_str_cat()

  • Loading branch information...
1 parent 1641827 commit a67e7050fc41d95e96932cbf2d20ed2c943ae691 @Watson1978 Watson1978 committed Apr 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 enumerator.c
View
@@ -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);

0 comments on commit a67e705

Please sign in to comment.