diff options
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r-- | src/arch/instruction.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c index 1bdb50e..8264f5b 100644 --- a/src/arch/instruction.c +++ b/src/arch/instruction.c @@ -1056,7 +1056,7 @@ static GBufferLine *_g_arch_instruction_print(GArchInstruction *instr, GCodeBuff key = g_arch_instruction_get_keyword(instr, syntax); klen = strlen(key); - g_buffer_line_insert_text(result, BLC_ASSEMBLY_HEAD, key, klen, RTT_INSTRUCTION); + g_buffer_line_append_text(result, BLC_ASSEMBLY_HEAD, key, klen, RTT_INSTRUCTION, NULL); if (instr->operands_count > 0) { @@ -1064,8 +1064,8 @@ static GBufferLine *_g_arch_instruction_print(GArchInstruction *instr, GCodeBuff for (i = 1; i < instr->operands_count; i++) { - g_buffer_line_insert_text(result, BLC_ASSEMBLY, ",", 1, RTT_PUNCT); - g_buffer_line_insert_text(result, BLC_ASSEMBLY, " ", 1, RTT_RAW); + g_buffer_line_append_text(result, BLC_ASSEMBLY, ",", 1, RTT_PUNCT, NULL); + g_buffer_line_append_text(result, BLC_ASSEMBLY, " ", 1, RTT_RAW, NULL); g_arch_operand_print(instr->operands[i], result, syntax); |