Index: trunk/Ohana/src/opihi/dvo/imbox.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/imbox.c	(revision 25757)
+++ trunk/Ohana/src/opihi/dvo/imbox.c	(revision 27435)
@@ -1,7 +1,9 @@
 # include "dvoshell.h"
 
+// LARGEFILES: this function is currently limited to images with Nx,Ny each < 2^31
 int imbox (int argc, char **argv) {
   
-  int j, kapa, Nskip, status, InPic, flipped, N, haveNx, haveNy, Nx, Ny, SOLO_PHU, Npts, NPTS;
+  off_t Nskip;
+  int j, kapa, status, InPic, flipped, N, haveNx, haveNy, Nx, Ny, SOLO_PHU, Npts, NPTS;
   Vector Xvec, Yvec;
   double r, d, x[4], y[4], Rmin, Rmax, Rmid;
@@ -112,5 +114,5 @@
   skip:
     Nskip = gfits_data_size (&header);
-    fseek (f, Nskip, SEEK_CUR); 
+    fseeko (f, Nskip, SEEK_CUR); 
     gfits_free_header (&header);
   }
