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/hgGcPercent/hgGcPercent.c src/hg/makeDb/hgGcPercent/hgGcPercent.c index f35a627..4e19a52 100644 --- src/hg/makeDb/hgGcPercent/hgGcPercent.c +++ src/hg/makeDb/hgGcPercent/hgGcPercent.c @@ -341,31 +341,31 @@ safef(twoBitFile, sizeof(twoBitFile), "%s", nibDir); else safef(twoBitFile, sizeof(twoBitFile), "%s/%s.2bit", nibDir, database); if (fileExists(twoBitFile)) { verbose(1, "#\tUsing twoBit: %s\n", twoBitFile); makeGcTabFromTwoBit(twoBitFile, tabFile, bedRegionList); } else { struct fileInfo *nibList, *nibEl; boolean gotNib = FALSE; nibList = listDirX(nibDir, "*.nib", TRUE); for (nibEl = nibList; nibEl != NULL; nibEl = nibEl->next) { - char dir[256], chrom[128], ext[64]; + char dir[PATH_LEN], chrom[FILENAME_LEN], ext[FILEEXT_LEN]; splitPath(nibEl->name, dir, chrom, ext); if (noRandom && endsWith(chrom,"random")) continue; if (chr) { verbose(2, "#\tchecking name: %s =? %s\n", chrom, chr); if (! sameString(chrom, chr)) continue; } verbose(1, "#\tProcessing %s\n", nibEl->name); makeGcTabFromNib(nibEl->name, chrom, tabFile, bedRegionList); gotNib = TRUE; } slFreeList(&nibList); if (! gotNib)