Index: trunk/Ohana/src/imregister/detrend/altpath.c
===================================================================
--- trunk/Ohana/src/imregister/detrend/altpath.c	(revision 7080)
+++ trunk/Ohana/src/imregister/detrend/altpath.c	(revision 27435)
@@ -2,13 +2,14 @@
 # include "detrend.h"
 
-int SetAltpath (FITS_DB *db, DetReg *image, int Nimage, Match *match, int Nmatch) {
+int SetAltpath (FITS_DB *db, DetReg *image, off_t Nimage, Match *match, off_t Nmatch) {
   
-  int i, j, n, found, status, Nlist;
-  int *list, *current;
+  int status, found;
+  off_t i, j, n, Nlist;
+  off_t *list, *current;
   char *dBPath, infile[256], outfile[256], line[1024];
   struct stat statbuf;
 
-  ALLOCATE (current, int, Nimage);
-  ALLOCATE (list, int, Nimage);
+  ALLOCATE (current, off_t, Nimage);
+  ALLOCATE (list, off_t, Nimage);
   Nlist = 0;
 
