Index: trunk/psModules/src/objects/pmSourceIO_SMPDATA.c
===================================================================
--- trunk/psModules/src/objects/pmSourceIO_SMPDATA.c	(revision 12402)
+++ trunk/psModules/src/objects/pmSourceIO_SMPDATA.c	(revision 12481)
@@ -3,6 +3,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-03-11 18:56:38 $
+ *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-03-18 22:03:21 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -35,5 +35,5 @@
 // this format consists of a header derived from the image header
 // followed by a zero-size matrix, followed by the table data
-bool pmSourcesWrite_SMPDATA (psFits *fits, psArray *sources, psMetadata *header, char *extname)
+bool pmSourcesWrite_SMPDATA (psFits *fits, psArray *sources, psMetadata *imageHeader, psMetadata *tableHeader, char *extname)
 {
 
@@ -48,5 +48,5 @@
 
     // find config information for output header
-    float ZERO_POINT = psMetadataLookupF32 (&status, header, "ZERO_PT");
+    float ZERO_POINT = psMetadataLookupF32 (&status, imageHeader, "ZERO_PT");
 
     table = psArrayAllocEmpty (sources->n);
@@ -89,5 +89,5 @@
 
     if (table->n == 0) {
-        psFitsWriteBlank (fits, header, extname);
+        psFitsWriteBlank (fits, tableHeader, extname);
         psFree (table);
         return true;
@@ -95,5 +95,5 @@
 
     psTrace ("pmFPAfile", 5, "writing ext data %s\n", extname);
-    if (!psFitsWriteTable (fits, header, table, extname)) {
+    if (!psFitsWriteTable (fits, tableHeader, table, extname)) {
         psError(PS_ERR_IO, false, "writing ext data %s\n", extname);
         psFree(table);
