SCP: Tolerate sim_instr() return when last debug is missing a newline
This commit is contained in:
parent
7e19679c93
commit
344e24dcbb
1 changed files with 1 additions and 0 deletions
1
scp.c
1
scp.c
|
@ -12272,6 +12272,7 @@ while ((eol = strchr (debug_line_buf, '\n')) || flush) {
|
||||||
debug_line_count = 0;
|
debug_line_count = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
linesize = debug_line_offset;
|
||||||
if (debug_line_count == 0) {
|
if (debug_line_count == 0) {
|
||||||
debug_line_buf_last_endprefix_offset = endprefix - debug_line_buf;
|
debug_line_buf_last_endprefix_offset = endprefix - debug_line_buf;
|
||||||
memcpy (debug_line_buf_last, debug_line_buf, linesize);
|
memcpy (debug_line_buf_last, debug_line_buf, linesize);
|
||||||
|
|
Loading…
Add table
Reference in a new issue