diff --git a/I1401/i1401_cd.c b/I1401/i1401_cd.c index 74dcfdbf..c277a252 100644 --- a/I1401/i1401_cd.c +++ b/I1401/i1401_cd.c @@ -410,7 +410,7 @@ return SCPE_OK; t_stat cdr_read_file (char *buf, int32 sz) { -fgets (buf, sz, cdr_unit.fileref); /* rd bin/char card */ +if (fgets (buf, sz, cdr_unit.fileref)) {}; /* rd bin/char card */ if (feof (cdr_unit.fileref)) /* eof? */ return STOP_NOCD; if (ferror (cdr_unit.fileref)) { /* error? */ diff --git a/I1620/i1620_cd.c b/I1620/i1620_cd.c index 85f9f107..5f533831 100644 --- a/I1620/i1620_cd.c +++ b/I1620/i1620_cd.c @@ -345,7 +345,7 @@ if ((cdr_unit.flags & UNIT_ATT) == 0) /* attached? */ for (i = 0; i < CD_LEN + 2; i++) /* clear buffer */ cdr_buf[i] = ' '; -fgets (cdr_buf, CD_LEN + 2, cdr_unit.fileref); /* read card */ +if (fgets (cdr_buf, CD_LEN + 2, cdr_unit.fileref)) {}; /* read card */ if (feof (cdr_unit.fileref)) /* eof? */ return STOP_NOCD; if (ferror (cdr_unit.fileref)) { /* error? */ diff --git a/I7094/i7094_cd.c b/I7094/i7094_cd.c index 73254a7f..7c9cfecc 100644 --- a/I7094/i7094_cd.c +++ b/I7094/i7094_cd.c @@ -215,8 +215,8 @@ switch (cdr_sta) { /* case on state */ cdr_cbuf[i] = ' '; cdr_sta = CDS_DATA; /* data state */ cdr_bptr = 0; /* init buf ptr */ - fgets (cdr_cbuf, (uptr->flags & UNIT_CBN)? (2 * CD_CHRLNT) + 2: CD_CHRLNT + 2, - uptr->fileref); /* read card */ + if (fgets (cdr_cbuf, (uptr->flags & UNIT_CBN)? (2 * CD_CHRLNT) + 2: CD_CHRLNT + 2, + uptr->fileref)) {}; /* read card */ if (feof (uptr->fileref)) /* eof? */ return ch6_err_disc (CH_A, U_CDR, CHF_EOF); /* set EOF, disc */ if (ferror (uptr->fileref)) { /* error? */ diff --git a/S3/s3_cd.c b/S3/s3_cd.c index 2fec5bc9..c930cd86 100644 --- a/S3/s3_cd.c +++ b/S3/s3_cd.c @@ -304,7 +304,7 @@ if (mod) { rbuf[i] = fgetc(cdr_unit.fileref); /* Read EBCDIC */ } } else { - fgets (rbuf, CBUFSIZE, cdr_unit.fileref); /* read Ascii */ + if (fgets (rbuf, CBUFSIZE, cdr_unit.fileref)) {}; /* read Ascii */ } if (feof (cdr_unit.fileref)) { /* eof? */ notready = 1;