Index: trunk/psphot/src/pmObjects_EAM.c
===================================================================
--- trunk/psphot/src/pmObjects_EAM.c	(revision 5350)
+++ trunk/psphot/src/pmObjects_EAM.c	(revision 5351)
@@ -6,6 +6,6 @@
  *  @author EAM, IfA: significant modifications.
  *
- *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-10-17 18:07:54 $
+ *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-10-17 19:04:33 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -999,5 +999,5 @@
     int Ncr    	 = 0;
     int Nsatstar = 0;
-    psRegion allArray = {0, 0, 0, 0};
+    // psRegion allArray;
 
     psVector *starsn = psVectorAlloc (sources->n, PS_TYPE_F32);
@@ -1031,5 +1031,8 @@
 
 	// XXX EAM : can we use the value of SATURATE if mask is NULL?
-	int Nsatpix = psImageCountPixelMask (tmpSrc->mask, allArray, PSPHOT_MASK_SATURATED);
+	// XXX EAM *** serious errors in psImageCountPixelMask: inconsistent with psRegion and subimage
+	// allArray = psRegionSet (1, tmpSrc->mask->numCols, 1, tmpSrc->mask->numRows);
+	// int Nsatpix = psImageCountPixelMask (tmpSrc->mask, allArray, PSPHOT_MASK_SATURATED);
+	int Nsatpix = psImageCountPixelMask_EAM (tmpSrc->mask, PSPHOT_MASK_SATURATED);
 
         // saturated star (size consistent with PSF or larger)
