Index: trunk/Ohana/src/opihi/dvo/imextract.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/imextract.c	(revision 20936)
+++ trunk/Ohana/src/opihi/dvo/imextract.c	(revision 27435)
@@ -3,8 +3,7 @@
 int imextract (int argc, char **argv) {
   
-  // int *subset, Nsubset;  -- not sure if we need to use this or not...
-
-  int i, j, n, N, Npts, NPTS, last, next, state, Nfields, Nreturn, Ncstack, Nstack;
-  int Nimage, VERBOSE;
+  off_t i, j, Nimage;
+  int n, N, Npts, NPTS, last, next, state, Nfields, Nreturn, Ncstack, Nstack;
+  int VERBOSE;
   char **cstack, name[1024];
   void *Signal;
@@ -73,4 +72,6 @@
 
   /* create output storage vectors */
+  Npts = 0;
+  NPTS = 100;
   ALLOCATE (values, dbValue, Nfields);
   ALLOCATE (vec, Vector *, Nreturn);
@@ -84,7 +85,4 @@
     ResetVector (vec[i], fields[i].type, NPTS);
   }
-
-  Npts = 0;
-  NPTS = 1;
 
   if ((image = LoadImages (&Nimage)) == NULL) goto escape;
