Index: /branches/eam_branches/ipp-20120405/Ohana/src/uniphot/include/setphot.h
===================================================================
--- /branches/eam_branches/ipp-20120405/Ohana/src/uniphot/include/setphot.h	(revision 33872)
+++ /branches/eam_branches/ipp-20120405/Ohana/src/uniphot/include/setphot.h	(revision 33873)
@@ -19,6 +19,6 @@
 
 /* global variables set in parameter file */
-# define MAX_PATH_LENGTH 1024
-char         ImageCat[MAX_PATH_LENGTH];
+# define DVO_MAX_PATH 1024
+char         ImageCat[DVO_MAX_PATH];
 char        *CATDIR;
 int          HOST_ID;
Index: /branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/initialize_setphot.c
===================================================================
--- /branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/initialize_setphot.c	(revision 33872)
+++ /branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/initialize_setphot.c	(revision 33873)
@@ -140,7 +140,7 @@
   // force CATDIR to be absolute (so parallel mode will work)
   char *tmpcatdir = NULL;
-  ALLOCATE (tmpcatdir, char, MAX_PATH_LENGTH);
+  ALLOCATE (tmpcatdir, char, DVO_MAX_PATH);
   GetConfig (config, "CATDIR",                 "%s",  0, tmpcatdir);
-  CATDIR = abspath (tmpcatdir, MAX_PATH_LENGTH);
+  CATDIR = abspath (tmpcatdir, DVO_MAX_PATH);
   free (tmpcatdir);
 
Index: /branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/setphot.c
===================================================================
--- /branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/setphot.c	(revision 33872)
+++ /branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/setphot.c	(revision 33873)
@@ -21,7 +21,7 @@
     zpts = load_zpt_ubercal (argv[1], &Nzpts, &flatcorrTable);
 
-    char flatcorrfile[MAX_PATH_LENGTH];
-    int size = snprintf (flatcorrfile, MAX_PATH_LENGTH, "%s/flatcorr.fits", CATDIR);
-    assert (size < MAX_PATH_LENGTH);
+    char flatcorrfile[DVO_MAX_PATH];
+    int size = snprintf (flatcorrfile, DVO_MAX_PATH, "%s/flatcorr.fits", CATDIR);
+    assert (size < DVO_MAX_PATH);
     FlatCorrectionSave(&flatcorrTable, flatcorrfile);
     // XXX should this program save any old copy of this file?
Index: /branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/update_dvo_setphot.c
===================================================================
--- /branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/update_dvo_setphot.c	(revision 33872)
+++ /branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/update_dvo_setphot.c	(revision 33873)
@@ -105,5 +105,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;
