IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39807


Ignore:
Timestamp:
Nov 12, 2016, 8:25:19 PM (10 years ago)
Author:
eugene
Message:

header keyword selection should not match FOOBAR if FOO is selected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20160809/Ohana/src/libfits/header/F_H_field.c

    r38986 r39807  
    9090      ptr = buf + 9; // start of following keyword
    9191      if (strncmp (field, ptr, Nfield)) continue;
     92      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
    9293      Nfound ++;
    9394      if (Nfound == N) return (ptr);
Note: See TracChangeset for help on using the changeset viewer.