Index: trunk/psModules/src/objects/pmSourceIO.c
===================================================================
--- trunk/psModules/src/objects/pmSourceIO.c	(revision 8815)
+++ trunk/psModules/src/objects/pmSourceIO.c	(revision 9067)
@@ -3,6 +3,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-09-15 09:49:01 $
+ *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-09-30 02:29:59 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -240,5 +240,6 @@
                 outhead = psMetadataCopy (NULL, phu->header);
                 psMetadataAddBool (outhead, PS_LIST_TAIL, "EXTEND", PS_META_REPLACE, "this file has extensions", true);
-                psFitsWriteBlank (file->fits, outhead);
+                // XXX what is the EXTNAME??
+                psFitsWriteBlank (file->fits, outhead, "");
                 file->phu = phu->header;
                 psTrace ("pmFPAfile", 5, "wrote phu %s (type: %d)\n", file->filename, file->type);
@@ -262,5 +263,5 @@
             psMetadataCopy (outhead, updates);
 
-            psFitsWriteBlank (file->fits, outhead);
+            psFitsWriteBlank (file->fits, outhead, headname);
             psTrace ("pmFPAfile", 5, "wrote ext head %s (type: %d)\n", file->filename, file->type);
             file->header = hdu->header;
