Index: trunk/Ohana/src/relastro/include/relastro.h
===================================================================
--- trunk/Ohana/src/relastro/include/relastro.h	(revision 33652)
+++ trunk/Ohana/src/relastro/include/relastro.h	(revision 33963)
@@ -120,12 +120,12 @@
 
 /* global variables set in parameter file */
-# define MAX_PATH_LENGTH 1024
-char   ImageCat[MAX_PATH_LENGTH];
-char   GSCFILE[MAX_PATH_LENGTH];
-char   CATDIR[MAX_PATH_LENGTH];
+# define DVO_MAX_PATH 1024
+char   ImageCat[DVO_MAX_PATH];
+char   GSCFILE[DVO_MAX_PATH];
+char   CATDIR[DVO_MAX_PATH];
 char   *HIGH_SPEED_DIR;
 char   CATMODE[16];    /* raw, mef, split, mysql */
 char   CATFORMAT[16];  /* internal, elixir, loneos, panstarrs */
-char   SKY_TABLE[MAX_PATH_LENGTH];
+char   SKY_TABLE[DVO_MAX_PATH];
 int    SKY_DEPTH;  /** XXX EAM : depth of catalog tables, fix usage */
 
Index: trunk/Ohana/src/relastro/src/ConfigInit.c
===================================================================
--- trunk/Ohana/src/relastro/src/ConfigInit.c	(revision 33652)
+++ trunk/Ohana/src/relastro/src/ConfigInit.c	(revision 33963)
@@ -39,5 +39,5 @@
   // force CATDIR to be absolute (so parallel mode will work)
   GetConfig (config, "CATDIR",                 "%s",  0, CATDIR);
-  char *tmpcatdir = abspath (CATDIR, MAX_PATH_LENGTH);
+  char *tmpcatdir = abspath (CATDIR, DVO_MAX_PATH);
   strcpy (CATDIR, tmpcatdir);
   free (tmpcatdir);
Index: trunk/Ohana/src/relastro/src/UpdateObjectOffsets.c
===================================================================
--- trunk/Ohana/src/relastro/src/UpdateObjectOffsets.c	(revision 33652)
+++ trunk/Ohana/src/relastro/src/UpdateObjectOffsets.c	(revision 33963)
@@ -87,5 +87,5 @@
 
     // ensure that the paths are absolute path names
-    char *tmppath = abspath (table->hosts[i].pathname, MAX_PATH_LENGTH);
+    char *tmppath = abspath (table->hosts[i].pathname, DVO_MAX_PATH);
     free (table->hosts[i].pathname);
     table->hosts[i].pathname = tmppath;
Index: trunk/Ohana/src/relastro/src/args.c
===================================================================
--- trunk/Ohana/src/relastro/src/args.c	(revision 33652)
+++ trunk/Ohana/src/relastro/src/args.c	(revision 33963)
@@ -98,5 +98,5 @@
     RADIUS = atof(argv[N]);
     remove_argument (N, &argc, argv);
-    HIGH_SPEED_DIR = abspath(argv[N], MAX_PATH_LENGTH);
+    HIGH_SPEED_DIR = abspath(argv[N], DVO_MAX_PATH);
     remove_argument (N, &argc, argv);
   }
Index: trunk/Ohana/src/relastro/src/high_speed_catalogs.c
===================================================================
--- trunk/Ohana/src/relastro/src/high_speed_catalogs.c	(revision 33652)
+++ trunk/Ohana/src/relastro/src/high_speed_catalogs.c	(revision 33963)
@@ -68,5 +68,9 @@
     char line[2048];
     snprintf (line, 2048, "cp %s/Images.dat %s/Images.dat", CATDIR, HIGH_SPEED_DIR);
-    system (line);
+    int status = system (line);
+    if (status) {
+      fprintf (stderr, "copy of Images.dat failed\n");
+      exit (3);
+    }
   }
 
@@ -109,5 +113,5 @@
 
     // ensure that the paths are absolute path names
-    char *tmppath = abspath (table->hosts[i].pathname, MAX_PATH_LENGTH);
+    char *tmppath = abspath (table->hosts[i].pathname, DVO_MAX_PATH);
     free (table->hosts[i].pathname);
     table->hosts[i].pathname = tmppath;
@@ -125,5 +129,5 @@
 
       free (outputDir);
-      outputDir = abspath (tableOut->hosts[index].pathname, MAX_PATH_LENGTH);
+      outputDir = abspath (tableOut->hosts[index].pathname, DVO_MAX_PATH);
     }
 
Index: trunk/Ohana/src/relastro/src/load_catalogs.c
===================================================================
--- trunk/Ohana/src/relastro/src/load_catalogs.c	(revision 33652)
+++ trunk/Ohana/src/relastro/src/load_catalogs.c	(revision 33963)
@@ -126,5 +126,5 @@
 
     // ensure that the paths are absolute path names
-    char *tmppath = abspath (table->hosts[i].pathname, MAX_PATH_LENGTH);
+    char *tmppath = abspath (table->hosts[i].pathname, DVO_MAX_PATH);
     free (table->hosts[i].pathname);
     table->hosts[i].pathname = tmppath;
Index: trunk/Ohana/src/relastro/src/relastro_objects.c
===================================================================
--- trunk/Ohana/src/relastro/src/relastro_objects.c	(revision 33652)
+++ trunk/Ohana/src/relastro/src/relastro_objects.c	(revision 33963)
@@ -109,5 +109,5 @@
 
     // ensure that the paths are absolute path names
-    char *tmppath = abspath (table->hosts[i].pathname, MAX_PATH_LENGTH);
+    char *tmppath = abspath (table->hosts[i].pathname, DVO_MAX_PATH);
     free (table->hosts[i].pathname);
     table->hosts[i].pathname = tmppath;
