IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 6, 2007, 3:42:40 PM (19 years ago)
Author:
eugene
Message:

handle i/o errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/header/F_read_H.c

    r15743 r15751  
    3535                    sizeof(char), FT_RECORD_SIZE, f);
    3636    if (Nbytes != FT_RECORD_SIZE) {
     37      if (feof(f)) return (FALSE);
    3738      perror ("fits read error");
     39      return (FALSE);
    3840    }
    3941   
    4042    header[0].size += Nbytes;
    41     if (Nbytes != FT_RECORD_SIZE) {
    42       return (FALSE);
    43     }
     43
    4444    if (i == 0) {
    4545      /* on first block, verify it is a FITS table: SIMPLE .. or XTENSION ... */
Note: See TracChangeset for help on using the changeset viewer.