Fixed string termination bug in cproc_disassemble.
This commit is contained in:
parent
b7fab085d4
commit
3bb4a9c99c
|
@ -231,6 +231,7 @@ void cproc_disassemble(cproc_t cp,
|
|||
len += dis_format(stab, buf + len, sizeof(buf) - len,
|
||||
&insn);
|
||||
|
||||
buf[len] = 0;
|
||||
cproc_printf(cp, "%s", buf);
|
||||
offset += count;
|
||||
length -= count;
|
||||
|
|
Loading…
Reference in New Issue