From 15dfa00851ead383648687bb554e073c90ea73e2 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Mon, 14 Apr 2014 16:10:51 +0300 Subject: [PATCH] fix reversed memset arguments in disassemble() --- libr/asm/p/asm_mips_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libr/asm/p/asm_mips_cs.c b/libr/asm/p/asm_mips_cs.c index 65aab05ab5..960066b6ee 100644 --- a/libr/asm/p/asm_mips_cs.c +++ b/libr/asm/p/asm_mips_cs.c @@ -18,7 +18,7 @@ static int disassemble(RAsm *a, RAsmOp *op, const ut8 *buf, int len) { } } mode |= (a->bits==64)? CS_MODE_64: CS_MODE_32; - memset (op, sizeof (RAsmOp), 0); + memset (op, 0, sizeof (RAsmOp)); op->size = 4; ret = cs_open (CS_ARCH_MIPS, mode, &handle); if (ret) goto fin;