summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 1 insertions, 3 deletions
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), "<L%03d>", lobj->label_no);
- rb_str_concat(str, rb_str_new2(buff));
+ rb_str_catf(str, "<L%03d>", lobj->label_no);
break;
}
break;