1
0
mirror of https://github.com/simh/simh.git synced 2026-01-13 15:27:14 +00:00

I7094: Fix typo in accessing unit array (COVERITY)

This commit is contained in:
Bob Supnik 2017-04-07 11:04:33 -07:00 committed by Mark Pizzolato
parent 6052e650db
commit d0298bd817

View File

@ -1,6 +1,6 @@
/* i7094_com.c: IBM 7094 7750 communications interface simulator
Copyright (c) 2005-2010, Robert M Supnik
Copyright (c) 2005-2017, Robert M Supnik
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
@ -26,6 +26,7 @@
com 7750 controller
coml 7750 lines
07-Apr-17 RMS Fixed typo in accessing unit array (COVERITY)
12-Aug-10 RMS Major rewrite for CTSS (Dave Pitts)
19-Nov-08 RMS Revised for common TMXR show routines
@ -504,7 +505,7 @@ switch (com_sta) { /* case on state */
ent = com_gethd_free (&com_inpq[ln]); /* get first char */
if (ent != 0) /* any input? */
chr = com_pkt[ent].data; /* return char */
else coml_unit[i].INPP = 0; /* this line is idle */
else coml_unit[ln].INPP = 0; /* this line is idle */
} /* end if input pending */
if (chr != 0) { /* got something? */
if ((i++ % 3) == 0) /* next word? */