openbsd-ports/emulators/simh/patches/patch-scp_c

16 lines
788 B
Plaintext
Raw Normal View History

2009-03-06 05:33:23 -05:00
$OpenBSD: patch-scp_c,v 1.15 2009/03/06 10:33:23 form Exp $
--- scp.c.orig Sun Feb 8 10:09:34 2009
+++ scp.c Tue Feb 10 22:30:48 2009
@@ -675,8 +675,10 @@ while (stat != SCPE_EXIT) {
else if (sim_vm_read != NULL) /* sim routine? */
cptr = (*sim_vm_read) (cbuf, CBUFSIZE, stdin);
else cptr = read_line (cbuf, CBUFSIZE, stdin); /* read command line */
2009-03-06 05:33:23 -05:00
- if (cptr == NULL) /* ignore EOF */
+ if (cptr == NULL) { /* ignore EOF */
+ putchar('\n');
continue;
+ }
2009-03-06 05:33:23 -05:00
if (*cptr == 0) /* ignore blank */
continue;
if (sim_log) /* log cmd */