fix reversed memset arguments in disassemble()

This commit is contained in:
Maks Naumov 2014-04-14 16:10:51 +03:00 committed by pancake
parent 1b444dfadb
commit 15dfa00851

View File

@ -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;