diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-22 08:53:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-22 08:53:34 +0000 |
commit | 0acca9a8261fb33f720d941fd5113f046bda2d70 (patch) | |
tree | 4515bfaba327031545daeba38c244f3b5519cca2 /re.c | |
parent | ee560dc68f363f0502349cd35f1fd06a05693c9e (diff) | |
download | ruby-0acca9a8261fb33f720d941fd5113f046bda2d70.tar.gz |
* 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
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1806,9 +1806,7 @@ match_inspect(VALUE match) if (names[i].name) rb_str_buf_cat(str, (const char *)names[i].name, names[i].len); else { - char buf[sizeof(i)*3+1]; - snprintf(buf, sizeof(buf), "%d", i); - rb_str_buf_cat2(str, buf); + rb_str_catf(str, "%d", i); } rb_str_buf_cat2(str, ":"); } |