From 0acca9a8261fb33f720d941fd5113f046bda2d70 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 22 Jul 2008 08:53:34 +0000 Subject: * compile.c (insn_data_to_s_detail), file.c (rb_stat_inspect), iseq.c (ruby_iseq_disasm_insn, ruby_iseq_disasm), process.c (pst_message), re.c (match_inspect): use rb_str_catf. * dir.c (dir_inspect), iseq.c (iseq_inspect, insn_operand_intern): use rb_sprintf. * error.c (rb_name_error, rb_raise, rb_loaderror, rb_fatal): use rb_vsprintf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 6f37f0d94b..993ebd082d 100644 --- a/compile.c +++ b/compile.c @@ -4679,10 +4679,8 @@ insn_data_to_s_detail(INSN *iobj) switch (type) { case TS_OFFSET: /* label(destination position) */ { - char buff[0x100]; LABEL *lobj = (LABEL *)OPERAND_AT(iobj, j); - snprintf(buff, sizeof(buff), "", lobj->label_no); - rb_str_concat(str, rb_str_new2(buff)); + rb_str_catf(str, "", lobj->label_no); break; } break; -- cgit v1.2.3