1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-04-16 00:21:25 +00:00

KA10: Fix possible error in FE.

This commit is contained in:
Richard Cornwell
2020-03-09 19:00:26 -04:00
parent 5dd3b99f32
commit 8af0e7ca5d

View File

@@ -1077,7 +1077,7 @@ dte_function(UNIT *uptr)
goto cty;
#if (NUM_DEVS_TTY > 0)
ln -= NUM_DLS;
if (ln > 0 && ln >= tty_desc.lines)
if (ln < 0 || ln >= tty_desc.lines)
break;
otty = &tty_out[ln];
if (cmd->sz > 8)