Index: /trunk/psLib/src/fits/psFits.c
===================================================================
--- /trunk/psLib/src/fits/psFits.c	(revision 12800)
+++ /trunk/psLib/src/fits/psFits.c	(revision 12801)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.64 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-03-23 00:34:52 $
+ *  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-04-11 17:01:50 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -210,4 +210,7 @@
     int hdutype = 0;
     char name[MAX_STRING_LENGTH];
+    char extstring[MAX_STRING_LENGTH];
+
+    sprintf (extstring, "'%s'", extname);
 
     // NOTE: fits_* return 0 for success
@@ -229,6 +232,9 @@
 	    continue;
 	}
+	// if this was read as a string, we will have leading and trailing single-quotes
+	// try both for comparison
+	
 	// do we have the right hdu (names match)?
-	if (!strcmp (name, extname)) {
+	if (!strcmp (name, extname) || !strcmp (name, extstring)) {
 	    return true;
 	}
