Index: trunk/psLib/src/imageops/psImagePixelExtract.c
===================================================================
--- trunk/psLib/src/imageops/psImagePixelExtract.c	(revision 5511)
+++ trunk/psLib/src/imageops/psImagePixelExtract.c	(revision 5530)
@@ -8,6 +8,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-11-14 22:18:33 $
+ *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-11-16 23:06:14 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -22,5 +22,4 @@
 
 #include "psErrorText.h"
-
 
 #define FUNC_MACRO_VECTOR_STORE_ROW(TYPE) \
@@ -407,9 +406,12 @@
         imgVec = psAlloc(sizeof(psVector));
         imgVec->type = input->type;
-        imgVec->n = *(int*)&imgVec->nalloc = numCols;
+
+        P_PSVECTOR_SET_NALLOC(imgVec,numCols);
+        imgVec->n = numCols;
         if (mask != NULL) {
             maskVec = psAlloc(sizeof(psVector));
             maskVec->type = mask->type;
-            maskVec->n = *(int*)&maskVec->nalloc = numCols;
+            P_PSVECTOR_SET_NALLOC(maskVec,numCols);
+            maskVec->n = numCols;
         }
         // recycle output to make a proper sized/type output structure
