IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2017, 12:47:22 PM (9 years ago)
Author:
eugene
Message:

mostly harmless changes to track down dvopsps segfaults: watch out for Bzero,Bscale in F_set_column.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20170809/src/libfits/header/F_H_field.c

    r39926 r40113  
    104104      ptr = buf + 9; // start of following keyword
    105105      if (strncmp (field, ptr, Nfield)) continue;
     106      if (ptr[Nfield + 1] != '=') continue; // the strncmp above will match a longer string which matches the subset of field (e.g., FOO will match FOOBAR and FOO).  test for the following '=' sign
    106107      Nfound ++;
    107108    }
     
    116117      ptr = buf + 9; // start of following keyword
    117118      if (strncmp (field, ptr, Nfield)) continue;
     119      if (ptr[Nfield + 1] != '=') continue; // the strncmp above will match a longer string which matches the subset of field (e.g., FOO will match FOOBAR and FOO).  test for the following '=' sign
    118120      Nfound ++;
    119121      if (Nwant == Nfound) return (ptr);
Note: See TracChangeset for help on using the changeset viewer.