summaryrefslogtreecommitdiff
path: root/src/arch/operand.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-10-23 16:22:50 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-10-23 18:53:25 (GMT)
commit56f7524c4fd0fc14a509be7689f4820b31564dbc (patch)
tree9c84e11279cd5711a4e0af907ca6160b62317528 /src/arch/operand.c
parent3f05bacd4fec23824489b51d964a7ce3565bb85b (diff)
Deleted a level of data to reduce the memory fingerprint.
Diffstat (limited to 'src/arch/operand.c')
-rw-r--r--src/arch/operand.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arch/operand.c b/src/arch/operand.c
index 5b36e13..a84018f 100644
--- a/src/arch/operand.c
+++ b/src/arch/operand.c
@@ -212,10 +212,11 @@ void g_arch_operand_set_alt_text(GArchOperand *operand, const char *text, Render
void g_arch_operand_print(const GArchOperand *operand, GBufferLine *line, AsmSyntax syntax)
{
if (operand->alt_text != NULL)
- g_buffer_line_insert_text(line, BLC_ASSEMBLY,
+ g_buffer_line_append_text(line, BLC_ASSEMBLY,
operand->alt_text,
operand->alt_len,
- operand->alt_tag);
+ operand->alt_tag,
+ NULL);
else
G_ARCH_OPERAND_GET_CLASS(operand)->print(operand, line, syntax);