diff --git a/scp.c b/scp.c index 0b22fabd..a873933b 100644 --- a/scp.c +++ b/scp.c @@ -7967,8 +7967,13 @@ lbuf[sizeof(lbuf)-1] = '\0'; if (sim_type_file_offset) (void)fseek (file, sim_type_file_offset, SEEK_SET); while ((NULL != fgets (lbuf, sizeof(lbuf)-1, file)) && - (lines++ < sim_type_line_count)) + (lines++ < sim_type_line_count)) { sim_printf ("%s", lbuf); + if (stop_cpu) { + stop_cpu = FALSE; + break; + } + } fclose (file); }