Index: branches/eam_branches/psphot.20100506/src/psphotStackParseCamera.c
===================================================================
--- branches/eam_branches/psphot.20100506/src/psphotStackParseCamera.c	(revision 27884)
+++ branches/eam_branches/psphot.20100506/src/psphotStackParseCamera.c	(revision 27888)
@@ -125,4 +125,5 @@
 	    }
 	    outputMask->save = true;
+	    outputMask->fileID = i;		// this is used to generate output names
 
 	    pmFPAfile *outputVariance = pmFPAfileDefineOutput(config, outputImage->fpa, "PSPHOT.STACK.OUTPUT.VARIANCE");
@@ -136,4 +137,5 @@
 	    }
 	    outputVariance->save = true;
+	    outputVariance->fileID = i;		// this is used to generate output names
 
 	    // the output sources are carried on the outputImage->fpa structures
