f952b14fca3833e9d8fef0ae8a086ad15485b552
galt
  Wed Jan 1 02:11:38 2025 -0800
fix various errors for utils compiled on Rocky 9 hgwdev-new.

diff --git src/hg/makeDb/hgGoldGapGl/hgLoadGap.c src/hg/makeDb/hgGoldGapGl/hgLoadGap.c
index b53ea91..db9dd86 100644
--- src/hg/makeDb/hgGoldGapGl/hgLoadGap.c
+++ src/hg/makeDb/hgGoldGapGl/hgLoadGap.c
@@ -138,31 +138,31 @@
     remove(tabFileName);
     dyStringFree(&ds);
     }
 }
 
 
 void makeGap(struct sqlConnection *conn, char *chromDir)
 /* Read in .gap files in chromDir and use them to create the
  * gap table for the corresponding chromosome(s). */
 {
 struct fileInfo *fiList, *fi;
 
 fiList = listDirX(chromDir, "*.gap", TRUE);
 for (fi = fiList; fi != NULL; fi = fi->next)
     {
-    char dir[256], chrom[128], ext[64];
+    char dir[PATH_LEN], chrom[FILENAME_LEN], ext[FILEEXT_LEN];
     char *ptr;
     char  gapName[128];
     char *gapFileName = fi->name;
 
     verbose(1, "Processing %s\n", gapFileName);
     /* Get full path name of .gap file and process it
      * into table names. */
     splitPath(gapFileName, dir, chrom, ext);
     while ((ptr = strchr(chrom, '.')) != NULL)
 	*ptr = '_';
     safef(gapName, sizeof(gapName), "%s_gap", chrom);
     gapFileToTable(conn, gapFileName, gapName);
     }
 }