TAPE: Fix P7B record length return when encountering a tape mark

This commit is contained in:
Mark Pizzolato 2019-04-02 09:26:34 -07:00
parent 2ba50a3f70
commit e6490223eb

View file

@ -944,8 +944,10 @@ else switch (f) { /* otherwise the read me
*bc = sbc; /* save rec lnt */
(void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* for read */
uptr->pos = uptr->pos + sbc; /* spc over record */
if (all_eof) /* tape mark? */
if (all_eof) { /* tape mark? */
status = MTSE_TMK;
*bc = 0;
}
}
break;