From cc2c8f10fca2348c987c7b97108d463472067a81 Mon Sep 17 00:00:00 2001 From: Bob Supnik Date: Fri, 7 Apr 2017 11:06:28 -0700 Subject: [PATCH] I7094: Fix typo in accessing unit array (COVERITY) --- I7094/i7094_com.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/I7094/i7094_com.c b/I7094/i7094_com.c index 18191fb2..cb2ded36 100644 --- a/I7094/i7094_com.c +++ b/I7094/i7094_com.c @@ -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? */