Fixed string termination bug in cproc_disassemble.

This commit is contained in:
Daniel Beer 2010-05-19 12:54:58 +12:00
parent b7fab085d4
commit 3bb4a9c99c
1 changed files with 1 additions and 0 deletions

View File

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