Index: /branches/eam_branches/ipp-20111122/Ohana/src/opihi/mana/findpeaks.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/opihi/mana/findpeaks.c	(revision 33311)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/opihi/mana/findpeaks.c	(revision 33312)
@@ -76,7 +76,7 @@
   }
 
-  ResetVector (vecx, OPIHI_FLT, MAX (Npeak, 1));
-  ResetVector (vecy, OPIHI_FLT, MAX (Npeak, 1));
-  ResetVector (vecz, OPIHI_FLT, MAX (Npeak, 1));
+  ResetVector (vecx, OPIHI_FLT, Npeak);
+  ResetVector (vecy, OPIHI_FLT, Npeak);
+  ResetVector (vecz, OPIHI_FLT, Npeak);
 
   /* eliminate non-local peaks */
Index: /branches/eam_branches/ipp-20111122/Ohana/src/opihi/mana/starcontour.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/opihi/mana/starcontour.c	(revision 33311)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/opihi/mana/starcontour.c	(revision 33312)
@@ -22,6 +22,6 @@
   N = 0;
   Npts = 100;
-  ResetVector (vecx, OPIHI_FLT, MAX (Npts, 1));
-  ResetVector (vecy, OPIHI_FLT, MAX (Npts, 1));
+  ResetVector (vecx, OPIHI_FLT, Npts);
+  ResetVector (vecy, OPIHI_FLT, Npts);
 
   Nx = buf[0].matrix.Naxis[0];
