Index: /branches/eam_branches/ipp-20220316/Ohana/src/addstar/src/sky_tessalation.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/addstar/src/sky_tessalation.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/addstar/src/sky_tessalation.c	(revision 42345)
@@ -52,5 +52,5 @@
   Ntotal = Nbase*pow(4.0, level);
   Ndigit = (int)(log10(Ntotal)) + 1 ;
-  snprintf (format, 16, "skytri.%%0%dd", Ndigit);
+  snprintf_nowarn (format, 16, "skytri.%%0%dd", Ndigit);
 
   // to what depth do we need to go to have only Nmax foreach subcell?
@@ -90,5 +90,5 @@
     for (j = 0; j < Ntriangles; j++) {
       sky_triangle_to_image (&image[j], &tri[j]);
-      snprintf (image[j].name, DVO_IMAGE_NAME_LEN, format, Nout);
+      snprintf_nowarn (image[j].name, DVO_IMAGE_NAME_LEN, format, Nout);
       Nout++;
     }  
@@ -128,5 +128,5 @@
   Ntotal = Nbase*pow(4.0, level);
   Ndigit = (int)(log10(Ntotal)) + 1 ;
-  snprintf (format, 16, "skycell.%%0%dd", Ndigit);
+  snprintf_nowarn (format, 16, "skycell.%%0%dd", Ndigit);
 
   // to what depth do we need to go to have only Nmax foreach subcell?
@@ -173,5 +173,5 @@
       if (!strcmp(rectangle[j].coords.ctype, "DROP")) continue;
       memcpy (&subset[Nsubset], &rectangle[j], sizeof(SkyRectangle));
-      snprintf (subset[Nsubset].name, DVO_IMAGE_NAME_LEN, format, Nname);
+      snprintf_nowarn (subset[Nsubset].name, DVO_IMAGE_NAME_LEN, format, Nname);
       Nname++;
       Nsubset++;
@@ -254,5 +254,5 @@
   for (double dec = -90.0; dec < +90.01; dec += CELLSIZE, Ndec ++) {
 
-    snprintf (format, 32, "skycell.%%03d.%03d", Ndec);
+    snprintf_nowarn (format, 32, "skycell.%%03d.%03d", Ndec);
 
     int Nring;
@@ -310,5 +310,5 @@
   Ntotal = 41254.2 / (dDEC*dDEC);
   Ndigit = (int)(log10(Ntotal)) + 1 ;
-  snprintf (format, 16, "skycell.%%0%dd", Ndigit);
+  snprintf_nowarn (format, 16, "skycell.%%0%dd", Ndigit);
 
   // generate the a collection of rectangles for each ring
@@ -367,5 +367,5 @@
   Ntotal = 41254.2 / (dDEC*dDEC);
   Ndigit = (int)(log10(Ntotal)) + 1 ;
-  snprintf (format, 16, "skycell.%%0%dd", Ndigit);
+  snprintf_nowarn (format, 16, "skycell.%%0%dd", Ndigit);
 
   double d2r = M_PI / 180; // is RAD_DEG
@@ -716,5 +716,5 @@
     // CFIS uses names with centers based on ra,dec
     // format = skycell.%03d.%03d
-    snprintf (ring[i].name, DVO_IMAGE_NAME_LEN, format, i);
+    snprintf_nowarn (ring[i].name, DVO_IMAGE_NAME_LEN, format, i);
   }
 
@@ -826,5 +826,5 @@
     ring[i].photcode = 1; // this needs to be set more sensibly
 
-    snprintf (ring[i].name, DVO_IMAGE_NAME_LEN, format, Nname);
+    snprintf_nowarn (ring[i].name, DVO_IMAGE_NAME_LEN, format, Nname);
     Nname++;
 
@@ -897,5 +897,5 @@
       ring[N].photcode = 1; // this needs to be set more sensibly
 
-      snprintf (ring[N].name, DVO_IMAGE_NAME_LEN, format, Nname);
+      snprintf_nowarn (ring[N].name, DVO_IMAGE_NAME_LEN, format, Nname);
       Nname++;
     }
@@ -927,7 +927,7 @@
   if (Nx * Ny > 1) {
     Ndigit = (int)(log10(Nx*Ny)) + 1 ;
-    snprintf (format, 80, "%s.%%0%dd", input[0].name, Ndigit);
+    snprintf_nowarn (format, 80, "%s.%%0%dd", input[0].name, Ndigit);
   } else {
-    snprintf (format, 80, "%s", input[0].name);
+    snprintf_nowarn (format, 80, "%s", input[0].name);
   }
 
@@ -944,7 +944,7 @@
 
       if (Nx + Ny > 1) {
-	snprintf (output[N].name, DVO_IMAGE_NAME_LEN, format, N);
+	snprintf_nowarn (output[N].name, DVO_IMAGE_NAME_LEN, format, N);
       } else {
-	snprintf (output[N].name, DVO_IMAGE_NAME_LEN, "%s", format);
+	snprintf_nowarn (output[N].name, DVO_IMAGE_NAME_LEN, "%s", format);
       }
 
Index: /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_duplicate_images.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_duplicate_images.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_duplicate_images.c	(revision 42345)
@@ -108,5 +108,5 @@
     // set up the basic catalog info
     char hostfile[1024];
-    snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);
+    snprintf_nowarn (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);
 
     dvo_catalog_init (&catalog, TRUE);
@@ -148,5 +148,5 @@
   // write out the subset table of image information
   char imageFile[512];
-  snprintf (imageFile, 512, "%s/ImageIDs.tmp.fits", CATDIR);
+  snprintf_nowarn (imageFile, 512, "%s/ImageIDs.tmp.fits", CATDIR);
 
   if (!ImageIDSave (imageFile, imageID)) {
@@ -173,11 +173,11 @@
 
     char command[1024];
-    snprintf (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -dup-images", 
+    snprintf_nowarn (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -dup-images", 
 	      table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, 
 	      UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax);
 
     char tmpline[1024];
-    if (VERBOSE)       { snprintf (tmpline, 1024, "%s -v",              command);                    strcpy (command, tmpline); }
-    if (VERBOSE2)      { snprintf (tmpline, 1024, "%s -vv",             command);                    strcpy (command, tmpline); }
+    if (VERBOSE)       { snprintf_nowarn (tmpline, 1024, "%s -v",              command);                    strcpy (command, tmpline); }
+    if (VERBOSE2)      { snprintf_nowarn (tmpline, 1024, "%s -vv",             command);                    strcpy (command, tmpline); }
 
     fprintf (stderr, "command: %s\n", command);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_fix_LAP.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_fix_LAP.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_fix_LAP.c	(revision 42345)
@@ -40,5 +40,5 @@
     // set up the basic catalog info
     char hostfile[1024];
-    snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);
+    snprintf_nowarn (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);
 
     dvo_catalog_init (&catalog, TRUE);
@@ -92,5 +92,5 @@
   // write out the subset table of image information
   char imageFile[512];
-  snprintf (imageFile, 512, "%s/delstar.fixLAP.%s.dat", CATDIR, uniquer);
+  snprintf_nowarn (imageFile, 512, "%s/delstar.fixLAP.%s.dat", CATDIR, uniquer);
 
   if (!ImageSubsetSave (imageFile, image, Nimage)) {
@@ -132,16 +132,16 @@
 
     ALLOCATE (table->hosts[i].results, char, 1024);
-    snprintf (table->hosts[i].results, 1024, "%s/delstar.fixLAP.imstats.%s.dat", table->hosts[i].pathname, uniquer);
+    snprintf_nowarn (table->hosts[i].results, 1024, "%s/delstar.fixLAP.imstats.%s.dat", table->hosts[i].pathname, uniquer);
 
     char command[1024];
-    snprintf (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -images %s -imstats %s -region %f %f %f %f -fix-LAP", 
+    snprintf_nowarn (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -images %s -imstats %s -region %f %f %f %f -fix-LAP", 
 	      table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, imageFile, table->hosts[i].results,
 	      UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax);
 
     char tmpline[1024];
-    if (VERBOSE)    { snprintf (tmpline, 1024, "%s -v",      command);             strcpy (command, tmpline); }
-    if (VERBOSE2)   { snprintf (tmpline, 1024, "%s -vv",     command);             strcpy (command, tmpline); }
-    if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }
-    if (UPDATE)     { snprintf (tmpline, 1024, "%s -update", command);             strcpy (command, tmpline); }
+    if (VERBOSE)    { snprintf_nowarn (tmpline, 1024, "%s -v",      command);             strcpy (command, tmpline); }
+    if (VERBOSE2)   { snprintf_nowarn (tmpline, 1024, "%s -vv",     command);             strcpy (command, tmpline); }
+    if (SINGLE_CPT) { snprintf_nowarn (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }
+    if (UPDATE)     { snprintf_nowarn (tmpline, 1024, "%s -update", command);             strcpy (command, tmpline); }
 
     fprintf (stderr, "command: %s\n", command);
@@ -210,5 +210,5 @@
   // write out the subset table of image information
   char imageFile[512];
-  snprintf (imageFile, 512, "%s/delstar.fixLAP.%s.dat", CATDIR, UNIQUER);
+  snprintf_nowarn (imageFile, 512, "%s/delstar.fixLAP.%s.dat", CATDIR, UNIQUER);
 
   // load the list of hosts
@@ -228,5 +228,5 @@
 
     ALLOCATE (table->hosts[i].results, char, 1024);
-    snprintf (table->hosts[i].results, 1024, "%s/delstar.fixLAP.imstats.%s.dat", table->hosts[i].pathname, UNIQUER);
+    snprintf_nowarn (table->hosts[i].results, 1024, "%s/delstar.fixLAP.imstats.%s.dat", table->hosts[i].pathname, UNIQUER);
 
     fprintf (stderr, "read %s\n", table->hosts[i].results);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_fix_LAP_edges.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_fix_LAP_edges.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_fix_LAP_edges.c	(revision 42345)
@@ -48,5 +48,5 @@
     // set up the basic catalog info
     char hostfile[1024];
-    snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);
+    snprintf_nowarn (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);
 
     dvo_catalog_init (&catalog, TRUE);
@@ -122,16 +122,16 @@
 
     ALLOCATE (table->hosts[i].results, char, 1024);
-    snprintf (table->hosts[i].results, 1024, "%s/delstar.fixLAPedges.measures.%s.dat", table->hosts[i].pathname, uniquer);
+    snprintf_nowarn (table->hosts[i].results, 1024, "%s/delstar.fixLAPedges.measures.%s.dat", table->hosts[i].pathname, uniquer);
 
     char command[1024];
-    snprintf (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -measures %s -region %f %f %f %f -fix-LAP-edges", 
+    snprintf_nowarn (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -measures %s -region %f %f %f %f -fix-LAP-edges", 
 	      table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, table->hosts[i].results,
 	      UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax);
 
     char tmpline[1024];
-    if (VERBOSE)    { snprintf (tmpline, 1024, "%s -v",      command);             strcpy (command, tmpline); }
-    if (VERBOSE2)   { snprintf (tmpline, 1024, "%s -vv",     command);             strcpy (command, tmpline); }
-    if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }
-    // if (UPDATE)     { snprintf (tmpline, 1024, "%s -update", command);             strcpy (command, tmpline); }
+    if (VERBOSE)    { snprintf_nowarn (tmpline, 1024, "%s -v",      command);             strcpy (command, tmpline); }
+    if (VERBOSE2)   { snprintf_nowarn (tmpline, 1024, "%s -vv",     command);             strcpy (command, tmpline); }
+    if (SINGLE_CPT) { snprintf_nowarn (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }
+    // if (UPDATE)     { snprintf_nowarn (tmpline, 1024, "%s -update", command);             strcpy (command, tmpline); }
 
     fprintf (stderr, "command: %s\n", command);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_fix_LAP_edges_delete.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_fix_LAP_edges_delete.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_fix_LAP_edges_delete.c	(revision 42345)
@@ -88,5 +88,5 @@
     // set up the basic catalog info
     char hostfile[1024];
-    snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);
+    snprintf_nowarn (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);
 
     dvo_catalog_init (&catalog, TRUE);
@@ -180,8 +180,8 @@
 
     // ALLOCATE (table->hosts[i].results, char, 1024);
-    // snprintf (table->hosts[i].results, 1024, "%s/delstar.fixLAPedges.measures.%s.dat", table->hosts[i].pathname, uniquer);
+    // snprintf_nowarn (table->hosts[i].results, 1024, "%s/delstar.fixLAPedges.measures.%s.dat", table->hosts[i].pathname, uniquer);
 
     char command[1024];
-    snprintf (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -fix-LAP-edges-delete %s", 
+    snprintf_nowarn (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -fix-LAP-edges-delete %s", 
 	      table->hosts[i].hostID, CATDIR, table->hosts[i].pathname,
 	      UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax,
@@ -189,8 +189,8 @@
 
     char tmpline[1024];
-    if (VERBOSE)    { snprintf (tmpline, 1024, "%s -v",      command);             strcpy (command, tmpline); }
-    if (VERBOSE2)   { snprintf (tmpline, 1024, "%s -vv",     command);             strcpy (command, tmpline); }
-    if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }
-    if (UPDATE)     { snprintf (tmpline, 1024, "%s -update", command);             strcpy (command, tmpline); }
+    if (VERBOSE)    { snprintf_nowarn (tmpline, 1024, "%s -v",      command);             strcpy (command, tmpline); }
+    if (VERBOSE2)   { snprintf_nowarn (tmpline, 1024, "%s -vv",     command);             strcpy (command, tmpline); }
+    if (SINGLE_CPT) { snprintf_nowarn (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }
+    if (UPDATE)     { snprintf_nowarn (tmpline, 1024, "%s -update", command);             strcpy (command, tmpline); }
 
     fprintf (stderr, "command: %s\n", command);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_photcodes.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_photcodes.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/delstar/src/delete_photcodes.c	(revision 42345)
@@ -38,5 +38,5 @@
     // set up the basic catalog info
     char hostfile[1024];
-    snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);
+    snprintf_nowarn (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);
 
     dvo_catalog_init (&catalog, TRUE);
@@ -94,5 +94,5 @@
 
     char command[1024];
-    snprintf (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -photcodes %s", 
+    snprintf_nowarn (command, 1024, "delstar_client -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -photcodes %s", 
 	      table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, 
 	      UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax, 
@@ -100,6 +100,6 @@
 
     char tmpline[1024];
-    if (VERBOSE)       { snprintf (tmpline, 1024, "%s -v",              command);                    strcpy (command, tmpline); }
-    if (VERBOSE2)      { snprintf (tmpline, 1024, "%s -vv",             command);                    strcpy (command, tmpline); }
+    if (VERBOSE)       { snprintf_nowarn (tmpline, 1024, "%s -v",              command);                    strcpy (command, tmpline); }
+    if (VERBOSE2)      { snprintf_nowarn (tmpline, 1024, "%s -vv",             command);                    strcpy (command, tmpline); }
 
     fprintf (stderr, "command: %s\n", command);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/dvomerge/src/dvorepairFixStackIDs.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/dvomerge/src/dvorepairFixStackIDs.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/dvomerge/src/dvorepairFixStackIDs.c	(revision 42345)
@@ -33,6 +33,6 @@
 
   while (fscanf (f, "%s", catdir) != EOF) {
-    snprintf (imageFilenameOld, DVO_MAX_PATH, "%s/Images.dat", catdir);
-    snprintf (imageFilenameNew, DVO_MAX_PATH, "%s/Images.dat.fixed", catdir);
+    snprintf_nowarn (imageFilenameOld, DVO_MAX_PATH, "%s/Images.dat", catdir);
+    snprintf_nowarn (imageFilenameNew, DVO_MAX_PATH, "%s/Images.dat.fixed", catdir);
     
     if ((image = LoadImages (&db, imageFilenameOld, &Nimage)) == NULL) {
Index: /branches/eam_branches/ipp-20220316/Ohana/src/dvomerge/src/dvorepairFixWarpIDs.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/dvomerge/src/dvorepairFixWarpIDs.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/dvomerge/src/dvorepairFixWarpIDs.c	(revision 42345)
@@ -46,6 +46,6 @@
 
   while (fscanf (f, "%s", catdir) != EOF) {
-    snprintf (imageFilenameOld, DVO_MAX_PATH, "%s/Images.dat", catdir);
-    snprintf (imageFilenameNew, DVO_MAX_PATH, "%s/Images.dat.fixed", catdir);
+    snprintf_nowarn (imageFilenameOld, DVO_MAX_PATH, "%s/Images.dat", catdir);
+    snprintf_nowarn (imageFilenameNew, DVO_MAX_PATH, "%s/Images.dat.fixed", catdir);
     
     if ((image = LoadImages (&db, imageFilenameOld, &Nimage)) == NULL) {
Index: /branches/eam_branches/ipp-20220316/Ohana/src/dvomerge/src/dvosecfilt_catalogs.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/dvomerge/src/dvosecfilt_catalogs.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/dvomerge/src/dvosecfilt_catalogs.c	(revision 42345)
@@ -34,5 +34,5 @@
 
     char hostfile[1024];
-    snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist->regions[i]->name);
+    snprintf_nowarn (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist->regions[i]->name);
 
     dvo_catalog_init (&catalog, TRUE);
@@ -116,5 +116,5 @@
     // options / arguments that can affect relastro_client -update-objects:
     char command[DVO_MAX_PATH];
-    snprintf (command, DVO_MAX_PATH, "dvosecfilt_client %s %d -hostID %d -hostdir %s -region %f %f %f %f", 
+    snprintf_nowarn (command, DVO_MAX_PATH, "dvosecfilt_client %s %d -hostID %d -hostdir %s -region %f %f %f %f", 
 	      abscatdir, Nsecfilt, table->hosts[i].hostID, table->hosts[i].pathname, 
 	      UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax
@@ -122,6 +122,6 @@
 
     char tmpline[DVO_MAX_PATH];
-    if (VERBOSE)    { snprintf (tmpline, DVO_MAX_PATH, "%s -v",      command);             strcpy (command, tmpline); }
-    if (SINGLE_CPT) { snprintf (tmpline, DVO_MAX_PATH, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }
+    if (VERBOSE)    { snprintf_nowarn (tmpline, DVO_MAX_PATH, "%s -v",      command);             strcpy (command, tmpline); }
+    if (SINGLE_CPT) { snprintf_nowarn (tmpline, DVO_MAX_PATH, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }
 
     fprintf (stderr, "command: %s\n", command);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/dvopsps/src/insert_FGshape_dvopsps.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/dvopsps/src/insert_FGshape_dvopsps.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/dvopsps/src/insert_FGshape_dvopsps.c	(revision 42345)
@@ -47,5 +47,5 @@
 
     char localFilename[1024];
-    snprintf (localFilename, 1024, "%s/%s.cpt", HOSTDIR, skylist->regions[i]->name);
+    snprintf_nowarn (localFilename, 1024, "%s/%s.cpt", HOSTDIR, skylist->regions[i]->name);
 
     // set up the basic catalog info
@@ -125,16 +125,16 @@
 
     char command[1024];
-    snprintf (command, 1024, "dvopsps_client forced_galaxy_shape -hostID %d -catdir %s -hostdir %s -region %f %f %f %f", 
+    snprintf_nowarn (command, 1024, "dvopsps_client forced_galaxy_shape -hostID %d -catdir %s -hostdir %s -region %f %f %f %f", 
 	      table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, 
 	      UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax);
 
     char tmpline[1024];
-    snprintf (tmpline, 1024, "%s -dbhost %s", command, DATABASE_HOST); strcpy (command, tmpline);
-    snprintf (tmpline, 1024, "%s -dbuser %s", command, DATABASE_USER); strcpy (command, tmpline);
-    snprintf (tmpline, 1024, "%s -dbpass %s", command, DATABASE_PASS); strcpy (command, tmpline);
-    snprintf (tmpline, 1024, "%s -dbname %s", command, DATABASE_NAME); strcpy (command, tmpline);
+    snprintf_nowarn (tmpline, 1024, "%s -dbhost %s", command, DATABASE_HOST); strcpy (command, tmpline);
+    snprintf_nowarn (tmpline, 1024, "%s -dbuser %s", command, DATABASE_USER); strcpy (command, tmpline);
+    snprintf_nowarn (tmpline, 1024, "%s -dbpass %s", command, DATABASE_PASS); strcpy (command, tmpline);
+    snprintf_nowarn (tmpline, 1024, "%s -dbname %s", command, DATABASE_NAME); strcpy (command, tmpline);
 
-    if (VERBOSE)    { snprintf (tmpline, 1024, "%s -v",      command);             strcpy (command, tmpline); }
-    if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }
+    if (VERBOSE)    { snprintf_nowarn (tmpline, 1024, "%s -v",      command);             strcpy (command, tmpline); }
+    if (SINGLE_CPT) { snprintf_nowarn (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }
 
     fprintf (stderr, "command: %s\n", command);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/dvopsps/src/insert_FWobjects_dvopsps.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/dvopsps/src/insert_FWobjects_dvopsps.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/dvopsps/src/insert_FWobjects_dvopsps.c	(revision 42345)
@@ -47,5 +47,5 @@
 
     char localFilename[1024];
-    snprintf (localFilename, 1024, "%s/%s.cpt", HOSTDIR, skylist->regions[i]->name);
+    snprintf_nowarn (localFilename, 1024, "%s/%s.cpt", HOSTDIR, skylist->regions[i]->name);
 
     // set up the basic catalog info
@@ -126,17 +126,17 @@
 
     char command[1024];
-    snprintf (command, 1024, "dvopsps_client forced_warp_objects -hostID %d -catdir %s -hostdir %s -region %f %f %f %f", 
+    snprintf_nowarn (command, 1024, "dvopsps_client forced_warp_objects -hostID %d -catdir %s -hostdir %s -region %f %f %f %f", 
 	      table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, 
 	      UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax);
 
     char tmpline[1024];
-    snprintf (tmpline, 1024, "%s -dbhost %s", command, DATABASE_HOST); strcpy (command, tmpline);
-    snprintf (tmpline, 1024, "%s -dbuser %s", command, DATABASE_USER); strcpy (command, tmpline);
-    snprintf (tmpline, 1024, "%s -dbpass %s", command, DATABASE_PASS); strcpy (command, tmpline);
-    snprintf (tmpline, 1024, "%s -dbname %s", command, DATABASE_NAME); strcpy (command, tmpline);
+    snprintf_nowarn (tmpline, 1024, "%s -dbhost %s", command, DATABASE_HOST); strcpy (command, tmpline);
+    snprintf_nowarn (tmpline, 1024, "%s -dbuser %s", command, DATABASE_USER); strcpy (command, tmpline);
+    snprintf_nowarn (tmpline, 1024, "%s -dbpass %s", command, DATABASE_PASS); strcpy (command, tmpline);
+    snprintf_nowarn (tmpline, 1024, "%s -dbname %s", command, DATABASE_NAME); strcpy (command, tmpline);
 
-    if (VERBOSE)    { snprintf (tmpline, 1024, "%s -v",         command);             strcpy (command, tmpline); }
-    if (TEST_MODE)  { snprintf (tmpline, 1024, "%s -test-mode", command);             strcpy (command, tmpline); }
-    if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s",    command, SINGLE_CPT); strcpy (command, tmpline); }
+    if (VERBOSE)    { snprintf_nowarn (tmpline, 1024, "%s -v",         command);             strcpy (command, tmpline); }
+    if (TEST_MODE)  { snprintf_nowarn (tmpline, 1024, "%s -test-mode", command);             strcpy (command, tmpline); }
+    if (SINGLE_CPT) { snprintf_nowarn (tmpline, 1024, "%s -cpt %s",    command, SINGLE_CPT); strcpy (command, tmpline); }
 
     fprintf (stderr, "command: %s\n", command);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/elixir/src/ConfigInit.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/elixir/src/ConfigInit.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/elixir/src/ConfigInit.c	(revision 42345)
@@ -98,6 +98,9 @@
   if (config == (char *) NULL) {
     fprintf (stderr, "ERROR: can't find configuration file %s\n", file);
-    if (file != (char *) NULL) free (file);
+    // XXX note: the test below fools gcc into thinking file could be NUL
+    // even though the test above forces an exit if it is NULL.
+    // if (file != (char *) NULL) free (file);
     Shutdown (1);
+    exit (2);
   }
   if (VERBOSE) fprintf (stderr, "loaded config file: %s\n", file);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/elixir/src/Photcodes.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/elixir/src/Photcodes.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/elixir/src/Photcodes.c	(revision 42345)
@@ -78,7 +78,7 @@
 
   if (!strcasecmp (mode, "MEF")) {
-    sprintf (fullname, "%s/%s.fits", path, name);
+    snprintf_nowarn (fullname, 256, "%s/%s.fits", path, name);
   } else {
-    sprintf (fullname, "%s/%s/%s%s.fits", path, name, name, ccd);
+    snprintf_nowarn (fullname, 256, "%s/%s/%s%s.fits", path, name, name, ccd);
   }
 
Index: /branches/eam_branches/ipp-20220316/Ohana/src/fakeastro/src/AstromOffsetMapOps.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/fakeastro/src/AstromOffsetMapOps.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/fakeastro/src/AstromOffsetMapOps.c	(revision 42345)
@@ -6,5 +6,5 @@
 
   char mapfile[DVO_MAX_PATH];
-  snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
+  snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
   AstromOffsetMapSave (table, mapfile);
 
Index: /branches/eam_branches/ipp-20220316/Ohana/src/fakeastro/src/ConfigInit.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/fakeastro/src/ConfigInit.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/fakeastro/src/ConfigInit.c	(revision 42345)
@@ -4,5 +4,5 @@
 
   char  *config, *file;
-  char CatdirPhotcodeFile[256];
+  char CatdirPhotcodeFile[DVO_MAX_PATH];
 
   /*** load configuration info ***/
@@ -90,5 +90,5 @@
 
   /* update master photcode table if not defined */
-  sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR_CHECK);
+  snprintf_nowarn (CatdirPhotcodeFile, DVO_MAX_PATH, "%s/Photcodes.dat", CATDIR_CHECK);
   if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) {
     fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/fakeastro/src/save_fakestars.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/fakeastro/src/save_fakestars.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/fakeastro/src/save_fakestars.c	(revision 42345)
@@ -18,5 +18,5 @@
     // save to a unique filename
     char filename[1024]; // CATDIR/tmpdir/starpar.PID.index.fits
-    snprintf (filename, 1024, "%s/tmpdir/starpar.%s.%05d.fits", CATDIR, uniquer, region->index);
+    snprintf_nowarn (filename, 1024, "%s/tmpdir/starpar.%s.%05d.fits", CATDIR, uniquer, region->index);
 
     // write the data to the given FITS file
Index: /branches/eam_branches/ipp-20220316/Ohana/src/gastro/src/getusno.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/gastro/src/getusno.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/gastro/src/getusno.c	(revision 42345)
@@ -9,4 +9,6 @@
   1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10};
 
+# define MY_MAX_PATH 256
+
 USNOdata *getusno (USNOstats *usnostats, CatStats *catstats, int *Nusno) {
 
@@ -15,5 +17,5 @@
   float hours[100];
   int start[100], number[100], *buffer, *buf;
-  char filename[128], c;
+  char filename[MY_MAX_PATH], c;
   FILE *f;
   double DEC1;
@@ -52,5 +54,5 @@
     
     /* load accelerator file */
-    sprintf (filename, "%s/zone%04d.acc", CDROM, spd); 
+    snprintf_nowarn (filename, MY_MAX_PATH, "%s/zone%04d.acc", CDROM, spd); 
     fprintf (stderr, "reading from %s\n", filename);
     f = fopen (filename, "r");
@@ -82,5 +84,5 @@
     
     /* open data file */
-    sprintf (filename, "%s/zone%04d.cat", CDROM, spd);
+    snprintf_nowarn (filename, MY_MAX_PATH, "%s/zone%04d.cat", CDROM, spd);
     fprintf (stderr, "reading from %s\n", filename);
     f = fopen (filename, "r");
Index: /branches/eam_branches/ipp-20220316/Ohana/src/gastro2/src/getusno.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/gastro2/src/getusno.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/gastro2/src/getusno.c	(revision 42345)
@@ -9,4 +9,6 @@
   1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10};
 
+# define MY_MAX_PATH 256
+
 int getusno (CatStats *catstats, RefCatalog *Ref) {
 
@@ -15,5 +17,5 @@
   float hours[100];
   int start[100], number[100], *buffer, *buf;
-  char filename[128];
+  char filename[MY_MAX_PATH];
   FILE *f;
   double DEC1;
@@ -54,5 +56,5 @@
     
     /* load accelerator file */
-    sprintf (filename, "%s/zone%04d.acc", USNO_A_DIR, spd); 
+    snprintf_nowarn (filename, MY_MAX_PATH, "%s/zone%04d.acc", USNO_A_DIR, spd); 
     fprintf (stderr, "reading from %s\n", filename);
     f = fopen (filename, "r");
@@ -77,5 +79,5 @@
     
     /* open data file */
-    sprintf (filename, "%s/zone%04d.cat", USNO_A_DIR, spd);
+    snprintf_nowarn (filename, MY_MAX_PATH, "%s/zone%04d.cat", USNO_A_DIR, spd);
     fprintf (stderr, "reading from %s\n", filename);
     f = fopen (filename, "r");
Index: /branches/eam_branches/ipp-20220316/Ohana/src/gastro2/src/getusnob.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/gastro2/src/getusnob.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/gastro2/src/getusnob.c	(revision 42345)
@@ -2,4 +2,6 @@
 # define NBYTE   4
 # define NELEM  20
+
+# define MY_MAX_PATH 256
 
 int getusnob (CatStats *catstats, RefCatalog *Ref, double epoch) {
@@ -9,5 +11,5 @@
   float hours[100];
   int start[100], number[100], *buffer, *buf;
-  char filename[128];
+  char filename[MY_MAX_PATH];
   FILE *f;
   double DEC1;
@@ -42,5 +44,5 @@
     
     /* load accelerator file */
-    sprintf (filename, "%s/%03d/b%04d.acc", USNO_B_DIR, (int)(spd/10), spd); 
+    snprintf_nowarn (filename, MY_MAX_PATH, "%s/%03d/b%04d.acc", USNO_B_DIR, (int)(spd/10), spd); 
     if (VERBOSE) fprintf (stderr, "reading from %s\n", filename);
     f = fopen (filename, "r");
@@ -65,5 +67,5 @@
     
     /* open data file */
-    sprintf (filename, "%s/%03d/b%04d.cat", USNO_B_DIR, (int)(spd/10), spd); 
+    snprintf_nowarn (filename, MY_MAX_PATH, "%s/%03d/b%04d.cat", USNO_B_DIR, (int)(spd/10), spd); 
     if (VERBOSE) fprintf (stderr, "reading from %s\n", filename);
     f = fopen (filename, "r");
Index: /branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit.c	(revision 42345)
@@ -1,8 +1,10 @@
 # include "getstar.h"
+
+# define MY_MAX_PATH 256
 
 int ConfigInit (int *argc, char **argv) {
 
   char *config, *file;
-  char CatdirPhotcodeFile[256];
+  char CatdirPhotcodeFile[MY_MAX_PATH];
 
   /*** load configuration info ***/
@@ -31,5 +33,5 @@
 
   /* XXX this does not yet write out the master photcode table */
-  sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR);
+  snprintf_nowarn (CatdirPhotcodeFile, MY_MAX_PATH, "%s/Photcodes.dat", CATDIR);
   if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) {
     fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit_coords.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit_coords.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit_coords.c	(revision 42345)
@@ -25,5 +25,5 @@
     SKY_TABLE[0] = 0;
   }
-  sprintf (ImageCat, "%s/Images.dat", CATDIR);
+  snprintf_nowarn (ImageCat, 256, "%s/Images.dat", CATDIR);
 
   /* used by parse_time to find time-related keywords */
Index: /branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit_extract.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit_extract.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit_extract.c	(revision 42345)
@@ -25,5 +25,5 @@
     SKY_TABLE[0] = 0;
   }
-  sprintf (ImageCat, "%s/Images.dat", CATDIR);
+  snprintf_nowarn (ImageCat, 256, "%s/Images.dat", CATDIR);
 
   if (*CATMODE == 0) strcpy (CATMODE, "RAW");
Index: /branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit_overlaps.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit_overlaps.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/getstar/src/ConfigInit_overlaps.c	(revision 42345)
@@ -25,5 +25,5 @@
     SKY_TABLE[0] = 0;
   }
-  sprintf (ImageCat, "%s/Images.dat", CATDIR);
+  snprintf_nowarn (ImageCat, 256, "%s/Images.dat", CATDIR);
 
   /* used by parse_time to find time-related keywords */
Index: /branches/eam_branches/ipp-20220316/Ohana/src/imregister/base/ConfigInit.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/imregister/base/ConfigInit.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/imregister/base/ConfigInit.c	(revision 42345)
@@ -6,7 +6,7 @@
 
   int i, NDB;
-  char *config, *file, ElixirBase[80], catdir[256];
-  char CatdirPhotcodeFile[256];
-  char MasterPhotcodeFile[256];
+  char *config, *file, ElixirBase[80], catdir[MY_MAX_PATH];
+  char CatdirPhotcodeFile[MY_MAX_PATH];
+  char MasterPhotcodeFile[MY_MAX_PATH];
 
   /*** load configuration info ***/
@@ -28,5 +28,5 @@
   WarnConfig (config, "CATDIR",                      "%s", 0, catdir);
   WarnConfig (config, "PHOTCODE_FILE",               "%s", 0, MasterPhotcodeFile);
-  sprintf (ImPhotDB, "%s/Images.dat", catdir);
+  snprintf_nowarn (ImPhotDB, MY_MAX_PATH, "%s/Images.dat", catdir);
 
   /* small text databases: filters, camera defs */ 
@@ -75,10 +75,10 @@
 						   
   WarnConfig (config, "imstats",                     "%s", 0, ElixirBase);
-  sprintf (ImstatFifo, "%s.photcode", ElixirBase);   
+  snprintf_nowarn (ImstatFifo, MY_MAX_PATH, "%s.photcode", ElixirBase);   
   WarnConfig (config, "ptolemy",                     "%s", 0, ElixirBase);
-  sprintf (PtolemyFifo, "%s.photcode", ElixirBase);
+  snprintf_nowarn (PtolemyFifo, MY_MAX_PATH, "%s.photcode", ElixirBase);
 
   if (!ScanConfig (config, "CONNECT", "%s",  0, CONNECT)) {
-    sprintf (CONNECT, "/usr/bin/rsh");
+    snprintf_nowarn (CONNECT, 64, "/usr/bin/rsh");
   }
 
@@ -87,5 +87,5 @@
   NDetrendAltDB = 0;
   ALLOCATE (DetrendAltDB, char *, NDB);
-  ALLOCATE (DetrendAltDB[NDetrendAltDB], char, 256);
+  ALLOCATE (DetrendAltDB[NDetrendAltDB], char, MY_MAX_PATH);
   for (i = 1; ScanConfig (config, "DETREND_ALT_DB", "%s", i, DetrendAltDB[NDetrendAltDB]); i++) {
     NDetrendAltDB ++;
@@ -94,5 +94,5 @@
       REALLOCATE (DetrendAltDB, char *, NDB);
     }
-    ALLOCATE (DetrendAltDB[NDetrendAltDB], char, 256);
+    ALLOCATE (DetrendAltDB[NDetrendAltDB], char, MY_MAX_PATH);
   }
   free (DetrendAltDB[NDetrendAltDB]);
@@ -104,5 +104,5 @@
 
   /* XXX this does not yet write out the master photcode table */
-  sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", catdir);
+  snprintf_nowarn (CatdirPhotcodeFile, MY_MAX_PATH, "%s/Photcodes.dat", catdir);
   if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) {
     fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/imregister/detrend/entry.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/imregister/detrend/entry.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/imregister/detrend/entry.c	(revision 42345)
@@ -31,5 +31,6 @@
   int status;
   int found, Ntry, filestate;
-  char path[256], fullpath[256], filename[256], rootname[256], fullname[256], line[512];
+  char path[MY_MAX_PATH], fullpath[MY_MAX_PATH], filename[MY_MAX_PATH];
+  char rootname[MY_MAX_PATH], fullname[MY_MAX_PATH], line[512];
   char *dBPath;
   char *filter_basename;
@@ -41,9 +42,9 @@
 
   if (newdata[0].type == T_FLAT) {
-    sprintf (path, "%s/%s", get_type_name(newdata[0].type), filter_basename);
+    snprintf_nowarn (path, MY_MAX_PATH, "%s/%s", get_type_name(newdata[0].type), filter_basename);
   } else {
-    sprintf (path, "%s", get_type_name(newdata[0].type));
+    snprintf_nowarn (path, MY_MAX_PATH, "%s", get_type_name(newdata[0].type));
   }    
-  sprintf (fullpath, "%s/%s", dBPath, path);
+  snprintf_nowarn (fullpath, MY_MAX_PATH, "%s/%s", dBPath, path);
 
   status = stat (fullpath, &statbuf);
@@ -65,8 +66,8 @@
   case T_BIAS:
   case T_MASK:
-    sprintf (rootname, "%s.%s.%d.%02d", ID, get_type_name(newdata[0].type), (int)newdata[0].exptime, newdata[0].ccd);
+    snprintf_nowarn (rootname, MY_MAX_PATH, "%s.%s.%d.%02d", ID, get_type_name(newdata[0].type), (int)newdata[0].exptime, newdata[0].ccd);
     break;
   default:
-    sprintf (rootname, "%s.%s.%s.%02d", ID, get_type_name(newdata[0].type), filter_basename, newdata[0].ccd);
+    snprintf_nowarn (rootname, MY_MAX_PATH, "%s.%s.%s.%02d", ID, get_type_name(newdata[0].type), filter_basename, newdata[0].ccd);
   }
 
@@ -74,6 +75,6 @@
   found = FALSE;
   for (Ntry = 0; !found && (Ntry < 100); Ntry++) {
-    sprintf (filename, "%s/%s.%02d.fits", path, rootname, Ntry);
-    sprintf (fullname, "%s/%s", dBPath, filename);
+    snprintf_nowarn (filename, MY_MAX_PATH, "%s/%s.%02d.fits", path, rootname, Ntry);
+    snprintf_nowarn (fullname, MY_MAX_PATH, "%s/%s", dBPath, filename);
     f = fsetlockfile (fullname, 2.0, LCK_XCLD, &filestate);
     /* if there is an error, it may just mean file is locked. */
Index: /branches/eam_branches/ipp-20220316/Ohana/src/imregister/imreg/args.imregister.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/imregister/imreg/args.imregister.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/imregister/imreg/args.imregister.c	(revision 42345)
@@ -73,6 +73,6 @@
 
     /* create db.log and db.bfr */
-    sprintf (TempDB, "%s.bfr", ImageDB);
-    sprintf (LogFile, "%s.log", ImageDB);
+    snprintf_nowarn (TempDB, MY_MAX_PATH, "%s.bfr", ImageDB);
+    snprintf_nowarn (LogFile, MY_MAX_PATH, "%s.log", ImageDB);
     
     /* check for daemon mode */
Index: /branches/eam_branches/ipp-20220316/Ohana/src/imregister/include/imregister.h
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/imregister/include/imregister.h	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/imregister/include/imregister.h	(revision 42345)
@@ -11,14 +11,16 @@
 */
 
-char ImstatFifo[256];
-char PtolemyFifo[256];
+# define MY_MAX_PATH 256
 
-char ImageDB[256];
-char DetrendDB[256];
-char PhotDB[256];
-char TransDB[256];
-char ImPhotDB[256];
-char TempDB[256];
-char LogFile[256];
+char ImstatFifo[MY_MAX_PATH];
+char PtolemyFifo[MY_MAX_PATH];
+
+char ImageDB[MY_MAX_PATH];
+char DetrendDB[MY_MAX_PATH];
+char PhotDB[MY_MAX_PATH];
+char TransDB[MY_MAX_PATH];
+char ImPhotDB[MY_MAX_PATH];
+char TempDB[MY_MAX_PATH];
+char LogFile[MY_MAX_PATH];
 char CONNECT[64];
 
@@ -26,9 +28,9 @@
 char **DetrendAltDB;
 
-char PhotCodeFile[256];
-char TempLogFile[256];
-char FilterList[256];
-char CameraConfig[256];
-char RecipeFile[256];
+char PhotCodeFile[MY_MAX_PATH];
+char TempLogFile[MY_MAX_PATH];
+char FilterList[MY_MAX_PATH];
+char CameraConfig[MY_MAX_PATH];
+char RecipeFile[MY_MAX_PATH];
 
 char DateKeyword[64];
Index: /branches/eam_branches/ipp-20220316/Ohana/src/imregister/photreg/getImageData.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/imregister/photreg/getImageData.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/imregister/photreg/getImageData.c	(revision 42345)
@@ -60,5 +60,5 @@
   }
 
-  sprintf (photcode, "%s.%s.%02d", detector, filter, ccd);
+  snprintf_nowarn (photcode, 64, "%s.%s.%02d", detector, filter, ccd);
   if (!(criteria.photcode = GetPhotcodeCodebyName (photcode))) {
     fprintf (stderr, "ERR: photcode not found table\n");
Index: /branches/eam_branches/ipp-20220316/Ohana/src/imregister/src/photcode-table.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/imregister/src/photcode-table.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/imregister/src/photcode-table.c	(revision 42345)
@@ -60,5 +60,5 @@
 
   char *config, *file;
-  char CATDIR[256];
+  char CATDIR[MY_MAX_PATH];
 
   /*** load configuration info ***/
@@ -76,5 +76,5 @@
   
   // set the CATDIR version based on CATDIR
-  sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR);
+  snprintf_nowarn (CatdirPhotcodeFile, MY_MAX_PATH, "%s/Photcodes.dat", CATDIR);
 
   free (config);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/libfits/header/F_create_H.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/libfits/header/F_create_H.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/libfits/header/F_create_H.c	(revision 42345)
@@ -24,5 +24,5 @@
 				       
   for (i = 0; i < header[0].Naxes; i++) {
-    snprintf (axis, 10, "NAXIS%d", i + 1);
+    snprintf_nowarn (axis, 10, "NAXIS%d", i + 1);
     gfits_modify (header,  axis, OFF_T_FMT, 1,  header[0].Naxis[i]);
   }
Index: /branches/eam_branches/ipp-20220316/Ohana/src/libfits/matrix/F_compress_M.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/libfits/matrix/F_compress_M.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/libfits/matrix/F_compress_M.c	(revision 42345)
@@ -86,10 +86,10 @@
   char keyword[11];
   for (i = 0; i < header[0].Naxes; i++) {
-    snprintf (keyword, 10, "ZNAXIS%d", i + 1);
+    snprintf_nowarn (keyword, 10, "ZNAXIS%d", i + 1);
     if (!gfits_modify (theader, keyword, OFF_T_FMT, 1,  header[0].Naxis[i])) ESCAPE;
   }
 
   for (i = 0; i < header->Naxes; i++) {
-    snprintf (keyword, 10, "ZTILE%d", i + 1);
+    snprintf_nowarn (keyword, 10, "ZTILE%d", i + 1);
     if (!gfits_modify (theader, keyword, "%lu", 1, ztile[i])) ESCAPE;
   }
@@ -131,8 +131,8 @@
   // note the difference between the keywords (1 indexed) and the variables (0 indexed)
   for (i = 0; i < Noptions; i++) {
-    snprintf (key, 10, "ZNAME%d", i + 1);
+    snprintf_nowarn (key, 10, "ZNAME%d", i + 1);
     if (!gfits_modify (header, key, "%s", 1, optname[i])) break;
 
-    snprintf (key, 10, "ZVAL%d", i + 1);
+    snprintf_nowarn (key, 10, "ZVAL%d", i + 1);
     if (!gfits_modify (header, key, "%s", 1, optvalue[i])) break;
   }
Index: /branches/eam_branches/ipp-20220316/Ohana/src/libfits/matrix/F_uncompress_M.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/libfits/matrix/F_uncompress_M.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/libfits/matrix/F_uncompress_M.c	(revision 42345)
@@ -90,6 +90,6 @@
   int axis;
   for (axis = 0; axis < header->Naxes; axis++) {
-    snprintf (zaxis, 10, "ZNAXIS%d", axis + 1);
-    snprintf (naxis, 10, "NAXIS%d", axis + 1);
+    snprintf_nowarn (zaxis, 10, "ZNAXIS%d", axis + 1);
+    snprintf_nowarn (naxis, 10, "NAXIS%d",  axis + 1);
     MOD_KEYWORD_REQUIRED (zaxis,  naxis,  OFF_T_FMT,  &header->Naxis[axis],  header->Naxis[axis]);
   }    
@@ -108,5 +108,5 @@
     // if ZTILE1 exists, all ZTILEn must exist:
     for (axis = 1; axis < header->Naxes; axis++) {
-      snprintf (key, 10, "ZTILE%d", axis + 1); 
+      snprintf_nowarn (key, 10, "ZTILE%d", axis + 1); 
       if (!gfits_scan (header, key, "%lu", 1, &ztile[axis])) ESCAPE;
       gfits_delete (header, key, 1);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/mosastro/src/getstone.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/mosastro/src/getstone.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/mosastro/src/getstone.c	(revision 42345)
@@ -28,5 +28,5 @@
 	    &regions[Nregion].RA[0], &regions[Nregion].RA[1], 
 	    &regions[Nregion].DEC[0], &regions[Nregion].DEC[1]);
-    sprintf (line, "%s/%s", StoneRegions, filename);
+    snprintf_nowarn (line, 1024, "%s/%s", StoneRegions, filename);
     regname[Nregion] = strcreate (line);
     Nregion ++;
Index: /branches/eam_branches/ipp-20220316/Ohana/src/mosastro/src/getusno.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/mosastro/src/getusno.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/mosastro/src/getusno.c	(revision 42345)
@@ -9,4 +9,6 @@
   1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10};
 
+# define MY_MAX_PATH 256
+
 StarData *getusno (CatStats *catstats, int *Nstars) {
 
@@ -15,5 +17,5 @@
   float hours[100];
   int start[100], number[100], *buffer, *buf;
-  char filename[128];
+  char filename[MY_MAX_PATH];
   FILE *f;
   int iRA0, iRA1, iDEC0, iDEC1;
@@ -59,5 +61,5 @@
     
     /* load accelerator file */
-    sprintf (filename, "%s/zone%04d.acc", USNO_A_DIR, spd); 
+    snprintf_nowarn (filename, MY_MAX_PATH, "%s/zone%04d.acc", USNO_A_DIR, spd); 
     if (VERBOSE) fprintf (stderr, "reading from %s\n", filename);
     f = fopen (filename, "r");
@@ -82,5 +84,5 @@
     
     /* open data file */
-    sprintf (filename, "%s/zone%04d.cat", USNO_A_DIR, spd);
+    snprintf_nowarn (filename, MY_MAX_PATH, "%s/zone%04d.cat", USNO_A_DIR, spd);
     if (VERBOSE) fprintf (stderr, "reading from %s\n", filename);
     f = fopen (filename, "r");
Index: /branches/eam_branches/ipp-20220316/Ohana/src/mosastro/src/getusnob.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/mosastro/src/getusnob.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/mosastro/src/getusnob.c	(revision 42345)
@@ -2,4 +2,6 @@
 # define NBYTE   4
 # define NELEM  20
+
+# define MY_MAX_PATH 256
 
 StarData *getusnob (CatStats *catstats, int *Nstars) {
@@ -9,5 +11,5 @@
   float hours[100];
   int start[100], number[100], *buffer, *buf;
-  char filename[128];
+  char filename[MY_MAX_PATH];
   FILE *f;
   double DEC1;
@@ -42,5 +44,5 @@
     
     /* load accelerator file */
-    sprintf (filename, "%s/%03d/b%04d.acc", USNO_B_DIR, (int)(spd/10), spd); 
+    snprintf_nowarn (filename, MY_MAX_PATH, "%s/%03d/b%04d.acc", USNO_B_DIR, (int)(spd/10), spd); 
     fprintf (stderr, "reading from %s\n", filename);
     f = fopen (filename, "r");
@@ -65,5 +67,5 @@
     
     /* open data file */
-    sprintf (filename, "%s/%03d/b%04d.cat", USNO_B_DIR, (int)(spd/10), spd); 
+    snprintf_nowarn (filename, MY_MAX_PATH, "%s/%03d/b%04d.cat", USNO_B_DIR, (int)(spd/10), spd); 
     fprintf (stderr, "reading from %s\n", filename);
     f = fopen (filename, "r");
Index: /branches/eam_branches/ipp-20220316/Ohana/src/nightd/include/nightd.h
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/nightd/include/nightd.h	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/nightd/include/nightd.h	(revision 42345)
@@ -3,18 +3,20 @@
 # include <errno.h>
 
+# define MY_MAX_PATH 256
+
 FILE *LogFile;
 char *Program;
 
-char logfile[256];
+char logfile[MY_MAX_PATH];
 char **MainCommand;
 char **InitCommand;
 char **DoneCommand;
 
-char TestCommand[256];
+char TestCommand[MY_MAX_PATH];
 
-char DateStr[256];
-char TimeStr[256];
+char DateStr[MY_MAX_PATH];
+char TimeStr[MY_MAX_PATH];
 
-char PIDFile[256];
+char PIDFile[MY_MAX_PATH];
 
 float NightStart;
Index: /branches/eam_branches/ipp-20220316/Ohana/src/nightd/src/GetStatus.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/nightd/src/GetStatus.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/nightd/src/GetStatus.c	(revision 42345)
@@ -23,5 +23,5 @@
 int ResetConfig () {
 
-  char user[256], machine[256], line[256];
+  char user[MY_MAX_PATH], machine[MY_MAX_PATH], line[MY_MAX_PATH];
   pid_t pid;
 
@@ -32,5 +32,5 @@
   }
 
-  sprintf (line, "rsh %s kill -USR1 %d", machine, pid);
+  snprintf_nowarn (line, MY_MAX_PATH, "rsh %s kill -USR1 %d", machine, pid);
   if (system (line) == -1) {
     fprintf (stderr, "failed to send signal\n");
@@ -42,5 +42,5 @@
 int SendShutdown () {
 
-  char user[256], machine[256], line[256];
+  char user[MY_MAX_PATH], machine[MY_MAX_PATH], line[MY_MAX_PATH];
   pid_t pid;
 
@@ -51,5 +51,5 @@
   }
 
-  sprintf (line, "rsh %s kill -TERM %d", machine, pid);
+  snprintf_nowarn (line, MY_MAX_PATH, "rsh %s kill -TERM %d", machine, pid);
   if (system (line) == -1) {
     fprintf (stderr, "failed to send signal\n");
Index: /branches/eam_branches/ipp-20220316/Ohana/src/opihi/cmd.basic/list.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/opihi/cmd.basic/list.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/opihi/cmd.basic/list.c	(revision 42345)
@@ -111,5 +111,5 @@
       set_str_variable (line, argv[i+3]);
     }
-    snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
+    snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
     set_int_variable (line, i);
 
@@ -133,5 +133,5 @@
     int isFound;
 
-    snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
+    snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
     int nList = get_int_variable (line, &isFound);
     if (!isFound) {
@@ -145,11 +145,11 @@
 
     for (i = start; i < nList; i++) {
-      snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i);
+      snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i);
       char *word = get_variable (line);
       if (!word) break;
       if (i > 0) {
-	snprintf (output, MAX_LINE_LENGTH, "%s %s", tmpline, word);
+	snprintf_nowarn (output, MAX_LINE_LENGTH, "%s %s", tmpline, word);
       } else {
-	snprintf (output, MAX_LINE_LENGTH, "%s", word);
+	snprintf_nowarn (output, MAX_LINE_LENGTH, "%s", word);
       }
       strcpy (tmpline, output);
@@ -179,5 +179,5 @@
     
     // old list must exist, or give an error
-    snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[3]);
+    snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[3]);
     N = get_int_variable (line, &found);
     if (!found) {
@@ -188,10 +188,10 @@
       
 
-    snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
+    snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
     set_int_variable (line, N);
     for (i = 0; i < N; i++) {
-      snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[3], i);
+      snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[3], i);
       value = get_variable (line);
-      // snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i);
+      // snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i);
       set_list_varname (line, argv[1], i, EXCEL_STYLE);
       set_str_variable (line, value);
@@ -207,12 +207,12 @@
     }
     
-    snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
+    snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
     N = get_int_variable (line, &found);
     for (i = 0; i < argc - 3; i++) {
-      // snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[1], N + i);
+      // snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[1], N + i);
       set_list_varname (line, argv[1], N + i, EXCEL_STYLE);
       set_str_variable (line, argv[i+3]);
     }
-    snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
+    snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
     set_int_variable (line, N + i);
 
@@ -231,10 +231,10 @@
     char line2[MAX_LINE_LENGTH];
 
-    snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]); // line = LIST:n
+    snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]); // line = LIST:n
     N = get_int_variable (line, &found);
 
     // loop over all list elements:
     for (i = 0; i < N; i++) {
-      // snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i);
+      // snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i);
       set_list_varname (line, argv[1], i, EXCEL_STYLE); // line = LIST:i
       value = get_variable (line);
@@ -245,5 +245,5 @@
 	free (value);
 	for (j = i + 1; j < N; j++) {
-	  // snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[1], j);
+	  // snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[1], j);
 	  set_list_varname (line2, argv[1], j, EXCEL_STYLE); // line2 = LIST:j
 	  next_value = get_variable (line2);
@@ -252,5 +252,5 @@
 	}
 	DeleteNamedScalar (line); // line = LIST:(N-1)
-	snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]); // line = LIST:n (new value of n)
+	snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]); // line = LIST:n (new value of n)
 	set_int_variable (line, N - 1);
 	return (TRUE);
@@ -309,5 +309,5 @@
       depth --;
       if (depth < 0) { /* we hit the last "END", loop is done */
-	snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
+	snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
 	set_int_variable (line, i);
 	free (input);
@@ -317,5 +317,5 @@
 
     if (*input) { 
-      // snprintf (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i);
+      // snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:%d", argv[1], i);
       set_list_varname (line, argv[1], i, EXCEL_STYLE);
       set_str_variable (line, input);
@@ -381,5 +381,5 @@
   free (val);
     
-  snprintf (line, MAX_LINE_LENGTH, "%s:n", listname);
+  snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", listname);
   set_int_variable (line, i);
   return (TRUE);
@@ -399,5 +399,5 @@
   // otherwise save all glob matches
   if (globList.gl_pathc == 0) {
-    snprintf (line, MAX_LINE_LENGTH, "%s:n", listname);
+    snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", listname);
     set_int_variable (line, 0);
     return TRUE;
@@ -409,5 +409,5 @@
     set_str_variable (line, globList.gl_pathv[i]);
   }
-  snprintf (line, MAX_LINE_LENGTH, "%s:n", listname);
+  snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", listname);
   set_int_variable (line, Nfile);
   return (TRUE);
@@ -430,5 +430,5 @@
     Nline ++;
   }
-  snprintf (varname, MAX_LINE_LENGTH, "%s:n", listname);
+  snprintf_nowarn (varname, MAX_LINE_LENGTH, "%s:n", listname);
   set_int_variable (varname, Nline);
   return TRUE;
@@ -463,5 +463,5 @@
     FREE (new);
   }
-  snprintf (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
+  snprintf_nowarn (line, MAX_LINE_LENGTH, "%s:n", argv[1]);
   set_int_variable (line, nWords);
 
Index: /branches/eam_branches/ipp-20220316/Ohana/src/opihi/cmd.data/cursor.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/opihi/cmd.data/cursor.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/opihi/cmd.data/cursor.c	(revision 42345)
@@ -42,14 +42,9 @@
     KiiCursorRead (kapa, &X, &Y, &Z, &R, &D, key);
 
-    sprintf (string, "X%s", key);
-    set_variable (string, X);
-    sprintf (string, "Y%s", key);
-    set_variable (string, Y);
-    sprintf (string, "Z%s", key);
-    set_variable (string, Z);
-    sprintf (string, "R%s", key);
-    set_variable (string, R);
-    sprintf (string, "D%s", key);
-    set_variable (string, D);
+    snprintf_nowarn (string, 20, "X%s", key);    set_variable (string, X);
+    snprintf_nowarn (string, 20, "Y%s", key);    set_variable (string, Y);
+    snprintf_nowarn (string, 20, "Z%s", key);    set_variable (string, Z);
+    snprintf_nowarn (string, 20, "R%s", key);    set_variable (string, R);
+    snprintf_nowarn (string, 20, "D%s", key);    set_variable (string, D);
 
     set_str_variable ("KEY", key);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/opihi/dvo/coordmosaic.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/opihi/dvo/coordmosaic.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/opihi/dvo/coordmosaic.c	(revision 42345)
@@ -311,10 +311,10 @@
       
       memset (segment, 0, 16); memcpy  (segment, &SEGMENT[i*Nsegment], 4);
-      snprintf (name, 16, "%s_L_CX%dY%d", segment, XORDER[i], YORDER[i]);
+      snprintf_nowarn (name, 16, "%s_L_CX%dY%d", segment, XORDER[i], YORDER[i]);
       double xvalue = get_double_variable (name, &found);
       xmask = !found;
       
       memset (segment, 0, 16); memcpy  (segment, &SEGMENT[i*Nsegment], 4);
-      snprintf (name, 16, "%s_M_CX%dY%d", segment, XORDER[i], YORDER[i]);
+      snprintf_nowarn (name, 16, "%s_M_CX%dY%d", segment, XORDER[i], YORDER[i]);
       double yvalue = get_double_variable (name, &found);
       ymask = !found;
@@ -437,9 +437,9 @@
 
 	int found, xmask, ymask;
-	snprintf (name, 16, "L_X%dY%d", ix, iy);
+	snprintf_nowarn (name, 16, "L_X%dY%d", ix, iy);
 	double xvalue = get_double_variable (name, &found);
 	xmask = !found;
 
-	snprintf (name, 16, "M_X%dY%d", ix, iy);
+	snprintf_nowarn (name, 16, "M_X%dY%d", ix, iy);
 	double yvalue = get_double_variable (name, &found);
 	ymask = !found;
Index: /branches/eam_branches/ipp-20220316/Ohana/src/opihi/dvo/elixir.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/opihi/dvo/elixir.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/opihi/dvo/elixir.c	(revision 42345)
@@ -4,8 +4,10 @@
 int ReadMsg (char *fifo, char **message);
 
+# define MY_MAX_PATH 256
+
 int elixir (int argc, char **argv) {
   
-  char message[256], cmd[256], ElixirBase[256];
-  char fifo[256], fifodir[256], msgfile[256];
+  char message[MY_MAX_PATH], cmd[MY_MAX_PATH], ElixirBase[MY_MAX_PATH];
+  char fifo[MY_MAX_PATH], fifodir[MY_MAX_PATH], msgfile[MY_MAX_PATH];
   char *answer;
   int N;
@@ -38,17 +40,17 @@
     return (FALSE);
   }
-  sprintf (fifo, "%s.msg", ElixirBase);
+  snprintf_nowarn (fifo, MY_MAX_PATH, "%s.msg", ElixirBase);
   if (!VarConfig ("FIFOS", "%s", fifodir)) {
     gprint (GP_ERR, "FIFOS not in config, using local /tmp\n");
     strcpy (fifodir, "/tmp");
   }
-  sprintf (fifo, "%s.msg", ElixirBase);
+  snprintf_nowarn (fifo, MY_MAX_PATH, "%s.msg", ElixirBase);
 
-  sprintf (msgfile, "%s/EMsg.XXXXXX", fifodir);
+  snprintf_nowarn (msgfile, MY_MAX_PATH, "%s/EMsg.XXXXXX", fifodir);
   if (mkstemp (msgfile) == -1) {
     gprint (GP_ERR, "can't create fifo\n");
     return (FALSE);
   }
-  sprintf (message, "%s %s", cmd, msgfile);
+  snprintf_nowarn (message, MY_MAX_PATH, "%s %s", cmd, msgfile);
   unlink (msgfile);
 
Index: /branches/eam_branches/ipp-20220316/Ohana/src/opihi/pantasks/controller_status.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/opihi/pantasks/controller_status.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/opihi/pantasks/controller_status.c	(revision 42345)
@@ -26,7 +26,7 @@
   }
 
-  snprintf (command, 1024, "status");
+  snprintf_nowarn (command, 1024, "status");
   for (i = 1; i < argc; i++) {
-    snprintf (tmpline, 1024, "%s %s", command, argv[i]);
+    snprintf_nowarn (tmpline, 1024, "%s %s", command, argv[i]);
     strcpy (command, tmpline);
   }
Index: /branches/eam_branches/ipp-20220316/Ohana/src/photdbc/src/ConfigInit.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/photdbc/src/ConfigInit.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/photdbc/src/ConfigInit.c	(revision 42345)
@@ -13,5 +13,5 @@
 
   char *config, *file;
-  char CatdirPhotcodeFile[256];
+  char CatdirPhotcodeFile[DVO_MAX_PATH];
 
   /*** load configuration info ***/
@@ -59,5 +59,5 @@
   free (tmpcatdir);
 
-  sprintf (ImageCat, "%s/Images.dat", CATDIR);
+  snprintf_nowarn (ImageCat, DVO_MAX_PATH, "%s/Images.dat", CATDIR);
 
   WarnConfig (config, "ZERO_PT",                "%lf", 0, &ZERO_POINT);
@@ -72,5 +72,5 @@
 
   /* XXX this does not yet write out the master photcode table */
-  sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR);
+  snprintf_nowarn (CatdirPhotcodeFile, DVO_MAX_PATH, "%s/Photcodes.dat", CATDIR);
   if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) {
     fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/photdbc/src/copy_images.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/photdbc/src/copy_images.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/photdbc/src/copy_images.c	(revision 42345)
@@ -58,5 +58,5 @@
 
   char mapfile[DVO_MAX_PATH];
-  snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
+  snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
   AstromOffsetTable *table_src = AstromOffsetMapLoad (mapfile, 100000, VERBOSE);
 
@@ -77,5 +77,5 @@
       AstromOffsetTableAddMapFromImage (table_tgt, &subset[i]);
     }
-    snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", outdir);
+    snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", outdir);
     AstromOffsetMapSave (table_tgt, mapfile);
     free (table_tgt->imageIDtoTableSeq);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/ConfigInit.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/ConfigInit.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/ConfigInit.c	(revision 42345)
@@ -61,5 +61,5 @@
   ScanConfig(config, "WHERE_B",                "%s",  0, WHERE_B);
 
-  snprintf (ImageCat, DVO_MAX_PATH, "%s/Images.dat", CATDIR);
+  snprintf_nowarn (ImageCat, DVO_MAX_PATH, "%s/Images.dat", CATDIR);
 
   if (!ScanConfig (config, "SKY_DEPTH",         "%d",  0, &SKY_DEPTH)) SKY_DEPTH = 2;
@@ -77,5 +77,5 @@
 
   /* update master photcode table if not defined */
-  snprintf (CatdirPhotcodeFile, DVO_MAX_PATH, "%s/Photcodes.dat", CATDIR);
+  snprintf_nowarn (CatdirPhotcodeFile, DVO_MAX_PATH, "%s/Photcodes.dat", CATDIR);
   if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) {
     fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/FrameCorrection.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/FrameCorrection.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/FrameCorrection.c	(revision 42345)
@@ -80,5 +80,5 @@
   static int version = 0;
   char filename[1024];
-  snprintf (filename, 1024, "%s/frame.%03d.corr.fits", CATDIR, version);
+  snprintf_nowarn (filename, 1024, "%s/frame.%03d.corr.fits", CATDIR, version);
   FrameCorrectionSetSave (filename, set);
   version ++;
@@ -217,5 +217,5 @@
     static int version = 0;
     char filename[1024];
-    snprintf (filename, 1024, "%s/sh.%02d.dat", CATDIR, version);
+    snprintf_nowarn (filename, 1024, "%s/sh.%02d.dat", CATDIR, version);
     FILE *f = fopen (filename, "w");
     myAssert (f, "oops");
@@ -519,5 +519,5 @@
     static int version = 0;
     char filename[1024];
-    snprintf (filename, 1024, "%s/map.%02d.dat", CATDIR, version);
+    snprintf_nowarn (filename, 1024, "%s/map.%02d.dat", CATDIR, version);
     FILE *f = fopen (filename, "w");
     version ++;
Index: /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/ICRF.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/ICRF.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/ICRF.c	(revision 42345)
@@ -56,5 +56,5 @@
 
   char filename[1024];
-  snprintf (filename, 1024, "%s/test.icrf.dat", CATDIR);
+  snprintf_nowarn (filename, 1024, "%s/test.icrf.dat", CATDIR);
   FILE *f = fopen (filename, "w");
 
Index: /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/assign_images.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/assign_images.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/assign_images.c	(revision 42345)
@@ -25,5 +25,5 @@
 
   char mapfile[DVO_MAX_PATH];
-  snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
+  snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
   AstromOffsetTable *table = AstromOffsetMapLoad (mapfile, 100000, VERBOSE);
 
Index: /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/bcatalog.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/bcatalog.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/bcatalog.c	(revision 42345)
@@ -64,5 +64,5 @@
   if (VERBOSE2 && ExcludeBogus && (fbogus == NULL)) {
     char name[1024];
-    snprintf (name, 1024, "%s/bogus.%02d.dat", CATDIR, HOST_ID);
+    snprintf_nowarn (name, 1024, "%s/bogus.%02d.dat", CATDIR, HOST_ID);
     fbogus = fopen (name, "w");
     if (!fbogus) {
@@ -533,5 +533,5 @@
   if (dumpit) {
     char name[64];
-    snprintf (name, 64, "cat.%05d.dump.dat", oldcatalog[0].catID);
+    snprintf_nowarn (name, 64, "cat.%05d.dump.dat", oldcatalog[0].catID);
     FILE *fdump = fopen (name, "w");
     for (i = 0; i < Nkeep; i++) {
Index: /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/launch_region_hosts.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/launch_region_hosts.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/launch_region_hosts.c	(revision 42345)
@@ -63,5 +63,5 @@
     // subset images per host : CATDIR/Image.HOSTNAME.fits
     char filename[1024];
-    snprintf (filename, 1024, "%s/Image.%d.fits", CATDIR, host->hostID);
+    snprintf_nowarn (filename, 1024, "%s/Image.%d.fits", CATDIR, host->hostID);
     if (unlink (filename)) fprintf (stderr, "trouble clearing image %s\n", filename);
 
@@ -71,5 +71,5 @@
     if (host->astromTable) {
       char mapname[1024];
-      snprintf (mapname, 1024, "%s/AstroMap.%d.fits", CATDIR, host->hostID);
+      snprintf_nowarn (mapname, 1024, "%s/AstroMap.%d.fits", CATDIR, host->hostID);
 
       // write the image subset for this host
Index: /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/load_images.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/load_images.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/load_images.c	(revision 42345)
@@ -56,5 +56,5 @@
 
   char mapfile[DVO_MAX_PATH];
-  snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
+  snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
   table = AstromOffsetMapLoad (mapfile, 100000, VERBOSE);
 
@@ -96,5 +96,5 @@
 
   char mapfile[DVO_MAX_PATH];
-  snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
+  snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
   AstromOffsetMapSave (table, mapfile);
 
Index: /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/relastro_parallel_images.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/relastro_parallel_images.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/relastro_parallel_images.c	(revision 42345)
@@ -43,5 +43,5 @@
 
   char mapfile[DVO_MAX_PATH];
-  snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.%d.fits", CATDIR, REGION_HOST_ID);
+  snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.%d.fits", CATDIR, REGION_HOST_ID);
   AstromOffsetTable *table = AstromOffsetMapLoad (mapfile, 100000, VERBOSE);
 
Index: /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/share_images_pos.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/share_images_pos.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/relastro/src/share_images_pos.c	(revision 42345)
@@ -38,5 +38,5 @@
   if (table) {
     char mapname[1024];
-    snprintf (mapname, 1024, "%s/AstroMapUpdate.%d.fits", CATDIR, REGION_HOST_ID);
+    snprintf_nowarn (mapname, 1024, "%s/AstroMapUpdate.%d.fits", CATDIR, REGION_HOST_ID);
     
     // write the image subset for this host
@@ -113,5 +113,5 @@
 
     char mapname[1024];
-    snprintf (mapname, 1024, "%s/AstroMapUpdate.%d.fits", CATDIR, regionHosts->hosts[i].hostID);
+    snprintf_nowarn (mapname, 1024, "%s/AstroMapUpdate.%d.fits", CATDIR, regionHosts->hosts[i].hostID);
     
     AstromOffsetTable *table = AstromOffsetMapLoad (mapname, 100000, VERBOSE);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/relphot/src/save_images.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/relphot/src/save_images.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/relphot/src/save_images.c	(revision 42345)
@@ -19,5 +19,5 @@
 
   char filename[1024];
-  snprintf (filename, 1024, "%s.bck", ImageCat); // ImageCat is global
+  snprintf_nowarn (filename, 1024, "%s.bck", ImageCat); // ImageCat is global
   if (!gfits_db_lock (&dbX, filename)) {
     fprintf (stderr, "can't lock backup image image catalog\n");
@@ -85,5 +85,5 @@
   dbX.format    = db->format;
 
-  snprintf (filename, 1024, "%s.bck", ImageCat);
+  snprintf_nowarn (filename, 1024, "%s.bck", ImageCat);
   if (!gfits_db_lock (&dbX, filename)) {
     fprintf (stderr, "can't lock backup image image catalog\n");
Index: /branches/eam_branches/ipp-20220316/Ohana/src/tools/src/fits_to_mysql.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/tools/src/fits_to_mysql.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/tools/src/fits_to_mysql.c	(revision 42345)
@@ -252,8 +252,8 @@
 
     char field[256], tlabel[256], format[256];
-    snprintf (field, 256, "TTYPE%d", i+1);
+    snprintf_nowarn (field, 256, "TTYPE%d", i+1);
     gfits_scan (header, field, "%s", 1, tlabel);
 
-    snprintf (field, 256, "TFORM%d", i+1);
+    snprintf_nowarn (field, 256, "TFORM%d", i+1);
     gfits_scan (header, field, "%s", 1, format);
 
@@ -270,5 +270,5 @@
     if (Ndup) {
       char tmpname[256];
-      snprintf (tmpname, 256, "%s_%d", tlabel, Ndup);
+      snprintf_nowarn (tmpname, 256, "%s_%d", tlabel, Ndup);
       column[Ncolumn].colname = strcreate (tmpname);
     } else {
@@ -357,5 +357,5 @@
     char colname[64];
     for (j = 0; j < Nval; j++) {
-      snprintf (colname, 64, "%s_%d", rootname, j + 1);
+      snprintf_nowarn (colname, 64, "%s_%d", rootname, j + 1);
       PrintIOBuffer (buffer, "%s %s", colname, typename);
       if (j < Nval - 1) {
@@ -455,5 +455,5 @@
       char colname[64];
       for (j = 0; j < columns[i].Nval; j++) {
-	snprintf (colname, 64, "%s_%d", columns[i].colname, j + 1);
+	snprintf_nowarn (colname, 64, "%s_%d", columns[i].colname, j + 1);
 	PrintIOBuffer (insert, "%s", colname);
 	if (j < columns[i].Nval - 1) {
@@ -649,11 +649,11 @@
 
   /* get column keywords */
-  snprintf (field, 256, "TTYPE%d", Nfield);
+  snprintf_nowarn (field, 256, "TTYPE%d", Nfield);
   gfits_scan (header, field, "%s", 1, tlabel);
-  snprintf (field, 256, "TSCAL%d", Nfield);
+  snprintf_nowarn (field, 256, "TSCAL%d", Nfield);
   gfits_scan (header, field, "%lf", 1, &Bscale);
-  snprintf (field, 256, "TZERO%d", Nfield);
+  snprintf_nowarn (field, 256, "TZERO%d", Nfield);
   gfits_scan (header, field, "%lf", 1, &Bzero);
-  snprintf (field, 256, "TFORM%d", Nfield);
+  snprintf_nowarn (field, 256, "TFORM%d", Nfield);
   gfits_scan (header, field, "%s", 1, format);
 
@@ -669,5 +669,5 @@
   int Nstart = 0;
   for (i = 1; i < Nfield; i++) {
-    snprintf (field, 256, "TFORM%d", i);
+    snprintf_nowarn (field, 256, "TFORM%d", i);
     gfits_scan (header, field, "%s", 1, format);
     int Nv, Nb;
Index: /branches/eam_branches/ipp-20220316/Ohana/src/uniphot/src/ConfigInit.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/uniphot/src/ConfigInit.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/uniphot/src/ConfigInit.c	(revision 42345)
@@ -22,5 +22,5 @@
   ScanConfig (config, "CATFORMAT",              "%s",  0, CATFORMAT);
 
-  sprintf (ImageCat, "%s/Images.dat", CATDIR);
+  snprintf_nowarn (ImageCat, 256, "%s/Images.dat", CATDIR);
 
   GetConfig (config, "GSCFILE",                 "%s",  0, GSCFILE);
Index: /branches/eam_branches/ipp-20220316/Ohana/src/uniphot/src/load_zpt_table.c
===================================================================
--- /branches/eam_branches/ipp-20220316/Ohana/src/uniphot/src/load_zpt_table.c	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/Ohana/src/uniphot/src/load_zpt_table.c	(revision 42345)
@@ -323,5 +323,5 @@
 	  // photcode name
 	  char photname[64];
-	  snprintf (photname, 64, "GPC1.%s.XY%d%d", filter, ix, iy);
+	  snprintf_nowarn (photname, 64, "GPC1.%s.XY%d%d", filter, ix, iy);
 	  // note that the XY00, XY07, etc, chips will have photcode values of 0
 
Index: /branches/eam_branches/ipp-20220316/psconfig/tagsets/ipp-ubuntu.perl
===================================================================
--- /branches/eam_branches/ipp-20220316/psconfig/tagsets/ipp-ubuntu.perl	(revision 42344)
+++ /branches/eam_branches/ipp-20220316/psconfig/tagsets/ipp-ubuntu.perl	(revision 42345)
@@ -82,5 +82,6 @@
   01  Test::Warnings                Test-Warnings-0.026.tar.gz		     0              NONE      NONE
   01  Test::Without::Module         Test-Without-Module-0.20.tar.gz	     0              NONE      NONE
-  01  Text::Diff                    Text-Diff-1.45.tar.gz		     0              NONE      NONE
+# trouble building this on clean 20.04 server.  Is it needed?
+# 01  Text::Diff                    Text-Diff-1.45.tar.gz		     0              NONE      NONE
   01  Text::Glob                    Text-Glob-0.11.tar.gz		     0              NONE      NONE
   01  Text::Template                Text-Template-1.55.tar.gz		     0              NONE      NONE
