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