b2747f670ec8572868679259f88196674ca6e32a galt Tue Dec 31 21:32:32 2024 -0800 fix hgLoadMaf found by Rocky 9 compiler on hgwdev-new diff --git src/hg/makeDb/hgLoadMaf/hgLoadMaf.c src/hg/makeDb/hgLoadMaf/hgLoadMaf.c index c16cf7a..00a573c 100644 --- src/hg/makeDb/hgLoadMaf/hgLoadMaf.c +++ src/hg/makeDb/hgLoadMaf/hgLoadMaf.c @@ -90,33 +90,33 @@ for (mc = maf->components; mc != NULL; mc = mc->next) { if (memcmp(mc->src, prefix, preLen) == 0 && mc->src[preLen] == '.') return mc; } return NULL; } void hgLoadMaf(char *database, char *table) /* hgLoadMaf - Load a maf file index into the database. */ { struct fileInfo *fileList = NULL, *fileEl; struct sqlConnection *conn; long mafCount = 0; FILE *f = NULL; -char extFileDir[512]; -char ext[10]; -char file[100]; +char extFileDir[PATH_LEN]; +char ext[FILEEXT_LEN]; +char file[FILENAME_LEN]; int indexLen; if (refDb == NULL) refDb = database; if (tmpDir == NULL) f = hgCreateTabFile(".", table); else f = hgCreateTabFile(tmpDir, table); if (testFile != NULL) { if (!fileExists(testFile)) errAbort("Test file %s doesn't exist\n", testFile);