mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-12 15:38:09 +00:00
fix reversed memset arguments in disassemble()
This commit is contained in:
parent
1b444dfadb
commit
15dfa00851
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user