Index: branches/eam_branches/gDiff.20200202/src/gDiffCamera.c
===================================================================
--- branches/eam_branches/gDiff.20200202/src/gDiffCamera.c	(revision 41413)
+++ branches/eam_branches/gDiff.20200202/src/gDiffCamera.c	(revision 41414)
@@ -475,5 +475,5 @@
     if (data->forcedPhot1) {
 	// this pmFPAfile is used to carry sources detected in the positive image #1
-	pmFPAfile *posSources1 = defineOutputFile(config, input, true, "GDIFF.POS1.SOURCES", PM_FPA_FILE_CMF);
+	pmFPAfile *posSources1 = defineOutputFile(config, output, true, "GDIFF.POS1.SOURCES", PM_FPA_FILE_CMF);
 	if (!posSources1) {
 	    psError(psErrorCodeLast(), false, "Unable to set up forced source file.");
@@ -483,5 +483,5 @@
 
 	// this pmFPAfile is used to carry sources detected in the diff image @ the positions from positive image #1
-	pmFPAfile *frcSources1 = defineOutputFile(config, input, true, "GDIFF.FORCED1.SOURCES", PM_FPA_FILE_CMF);
+	pmFPAfile *frcSources1 = defineOutputFile(config, output, true, "GDIFF.FORCED1.SOURCES", PM_FPA_FILE_CMF);
 	if (!frcSources1) {
 	    psError(psErrorCodeLast(), false, "Unable to set up forced source file.");
