Index: /branches/eam_branches/20091113/Ohana/src/addstar/src/MatchHeaders.c
===================================================================
--- /branches/eam_branches/20091113/Ohana/src/addstar/src/MatchHeaders.c	(revision 26164)
+++ /branches/eam_branches/20091113/Ohana/src/addstar/src/MatchHeaders.c	(revision 26165)
@@ -6,5 +6,5 @@
 
   int i, j, Nimage, NIMAGE;
-  char extname[80], exttype[80], exthead[80];
+  char extname[80], exttype[80], exthead[80], xtension[80];
   HeaderSet *headerSets;
 
@@ -46,4 +46,8 @@
       extsize[0][i] = headers[i][0].size + gfits_data_size (headers[i]);
     }
+
+    // is this a fits table? (otherwise we skip it)
+    if (!gfits_scan (headers[i], "XTENSION", "%s", 1, xtension)) continue;
+    if (strcmp (xtension, "BINTABLE")) continue;
 
     if (!gfits_scan (headers[i], "EXTTYPE", "%s", 1, exttype)) continue;
