Index: /branches/czw_branch/20160809/Ohana/src/libfits/header/F_H_field.c
===================================================================
--- /branches/czw_branch/20160809/Ohana/src/libfits/header/F_H_field.c	(revision 39806)
+++ /branches/czw_branch/20160809/Ohana/src/libfits/header/F_H_field.c	(revision 39807)
@@ -90,4 +90,5 @@
       ptr = buf + 9; // start of following keyword
       if (strncmp (field, ptr, Nfield)) continue;
+      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
       Nfound ++;
       if (Nfound == N) return (ptr);
