diff --git a/util/ego/ca/ca_put.c b/util/ego/ca/ca_put.c index ceee74f4e..973fa4365 100644 --- a/util/ego/ca/ca_put.c +++ b/util/ego/ca/ca_put.c @@ -271,7 +271,8 @@ STATIC outoperand(lnp) switch(TYPE(lnp)) { case OPNO: - if ((em_flag[INSTR(lnp)-sp_fmnem]&EM_PAR) != PAR_NO) { + if (INSTR(lnp) <= sp_lmnem && + (em_flag[INSTR(lnp)-sp_fmnem]&EM_PAR) != PAR_NO) { outbyte((byte) sp_cend); } break;