From 7194267b3bdf68ad75bd6bee8e7c6377f7b0ea2f Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 10 Apr 2000 05:48:43 +0000 Subject: 2000-04-10 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'array.c') diff --git a/array.c b/array.c index f8c2b2e030..f4c3a33752 100644 --- a/array.c +++ b/array.c @@ -728,8 +728,8 @@ rb_ary_join(ary, sep) default: tmp = rb_obj_as_string(tmp); } - if (!NIL_P(sep)) rb_str_concat(result, sep); - rb_str_cat(result, RSTRING(tmp)->ptr, RSTRING(tmp)->len); + if (!NIL_P(sep)) rb_str_append(result, sep); + rb_str_append(result, tmp); if (OBJ_TAINTED(tmp)) taint = 1; } @@ -841,8 +841,8 @@ inspect_ary(ary) for (i=0; ilen; i++) { s = rb_inspect(RARRAY(ary)->ptr[i]); tainted = OBJ_TAINTED(s); - if (i > 0) rb_str_cat(str, ", ", 2); - rb_str_cat(str, RSTRING(s)->ptr, RSTRING(s)->len); + if (i > 0) rb_str_cat2(str, ", "); + rb_str_append(str, s); } rb_str_cat(str, "]", 1); -- cgit v1.2.3