IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19237


Ignore:
Timestamp:
Aug 27, 2008, 10:56:20 AM (18 years ago)
Author:
Paul Price
Message:

Missed a system call without error check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotExtendedSourceFits.c

    r18847 r19237  
    264264          char key[10];
    265265          fprintf (stdout, "continue? ");
    266           fgets (key, 8, stdin);
    267           if (key[0] == 'n') {
    268             savePics = false;
     266          if (!fgets (key, 8, stdin)) {
     267              psWarning("Couldn't read anything.");
     268          } else if (key[0] == 'n') {
     269              savePics = false;
    269270          }
    270271        }
Note: See TracChangeset for help on using the changeset viewer.