Index: /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/cut.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/cut.c	(revision 33310)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/cut.c	(revision 33311)
@@ -48,6 +48,6 @@
   case 'X':
     /* create output vectors */
-    ResetVector (xvec, OPIHI_FLT, MAX (nx, 1));
-    ResetVector (yvec, OPIHI_FLT, MAX (nx, 1));
+    ResetVector (xvec, OPIHI_FLT, nx);
+    ResetVector (yvec, OPIHI_FLT, nx);
     bzero (yvec[0].elements.Flt, nx*sizeof(opihi_flt));
     for (i = 0; i < nx; i++) {
@@ -80,6 +80,6 @@
   case 'y':
   case 'Y':
-    ResetVector (xvec, OPIHI_FLT, MAX (ny, 1));
-    ResetVector (yvec, OPIHI_FLT, MAX (ny, 1));
+    ResetVector (xvec, OPIHI_FLT, ny);
+    ResetVector (yvec, OPIHI_FLT, ny);
     bzero (yvec[0].elements.Flt, ny*sizeof(opihi_flt));
     for (i = 0; i < ny; i++) {
Index: /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/imcut.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/imcut.c	(revision 33310)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/imcut.c	(revision 33311)
@@ -37,6 +37,6 @@
   dY = dY / L;
 
-  ResetVector (xvec, OPIHI_FLT, MAX (L, 1));
-  ResetVector (yvec, OPIHI_FLT, MAX (L, 1));
+  ResetVector (xvec, OPIHI_FLT, L);
+  ResetVector (yvec, OPIHI_FLT, L);
 
   V = (float *)buf[0].matrix.buffer;
Index: /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/read_vectors.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/read_vectors.c	(revision 33310)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/read_vectors.c	(revision 33311)
@@ -402,5 +402,5 @@
 	sprintf (name, "%s:%d", argv[i], j);
       if ((vec[j] = SelectVector (name, ANYVECTOR, TRUE)) == NULL) ESCAPE ("bad vector name");
-      ResetVector (vec[j], vecType, MAX (Ny,1));
+      ResetVector (vec[j], vecType, Ny);
     }
 
Index: /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/reindex.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/reindex.c	(revision 33310)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/reindex.c	(revision 33311)
@@ -22,5 +22,5 @@
 
   // ovec matches ivec in type and xvec in size (xvec need not have all ivec elements, and may have duplicates
-  ResetVector (ovec, ivec->type, MAX (xvec[0].Nelements, 1));
+  ResetVector (ovec, ivec->type, xvec[0].Nelements);
 
   Nmax = ivec[0].Nelements - 1;
@@ -51,5 +51,5 @@
 
   // free up unused memory
-  ResetVector (ovec, ivec->type, MAX (Npts, 1));
+  ResetVector (ovec, ivec->type, Npts);
   return (TRUE);
 
Index: /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/select.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/select.c	(revision 33310)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/select.c	(revision 33311)
@@ -28,7 +28,7 @@
 
   if ((in1->type == OPIHI_INT) && (in2->type == OPIHI_INT)) {
-    ResetVector (ovec, OPIHI_INT, MAX (tvec[0].Nelements, 1));
+    ResetVector (ovec, OPIHI_INT, tvec[0].Nelements);
   } else {
-    ResetVector (ovec, OPIHI_FLT, MAX (tvec[0].Nelements, 1));
+    ResetVector (ovec, OPIHI_FLT, tvec[0].Nelements);
   }
 
