TAPE: Fix P7B record length return when encountering a tape mark
This commit is contained in:
parent
2ba50a3f70
commit
e6490223eb
1 changed files with 3 additions and 1 deletions
|
@ -944,8 +944,10 @@ else switch (f) { /* otherwise the read me
|
||||||
*bc = sbc; /* save rec lnt */
|
*bc = sbc; /* save rec lnt */
|
||||||
(void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* for read */
|
(void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* for read */
|
||||||
uptr->pos = uptr->pos + sbc; /* spc over record */
|
uptr->pos = uptr->pos + sbc; /* spc over record */
|
||||||
if (all_eof) /* tape mark? */
|
if (all_eof) { /* tape mark? */
|
||||||
status = MTSE_TMK;
|
status = MTSE_TMK;
|
||||||
|
*bc = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue