bc6bf7b8c9b952dd6434acbb09b99f25b46a9ab3 galt Mon Dec 30 21:07:43 2024 -0800 Fixing compiler warngins compiling on hgwdev-new with Rocky 9 diff --git src/hg/lib/qaSeq.c src/hg/lib/qaSeq.c index 41ac4d4..99082ec 100644 --- src/hg/lib/qaSeq.c +++ src/hg/lib/qaSeq.c @@ -474,31 +474,31 @@ FILE *qacOpenVerify(char *fileName, boolean *retIsSwapped) /* Open qac file, and verify that it is indeed a qac file. */ { FILE *f = mustOpen(fileName, "rb"); bits32 sig; mustReadOne(f, sig); if (sig == qacSig) *retIsSwapped = FALSE; else if (sig == caqSig) *retIsSwapped = TRUE; else errAbort("%s is not a good .qac file", fileName); return f; } -void upOneDirFromFile(char *path, char dir[256], char name[128], +void upOneDirFromFile(char *path, char dir[512], char name[128], char ext[64]) /* Return parent directory given pathName. Given * /usr/include/sys/io.h return /usr/include/ Given * io.h return ../../ Given sys/io.h return ../ * The parent directory will be returned in dir. The file name * and extension will be returned in the name and ext parameters. */ { char *s; int len; splitPath(path, dir, name, ext); /* Handle case where no directory in pathName. */ if (dir[0] == 0) { @@ -519,31 +519,31 @@ strcpy(dir, "../"); return; } /* Case where convert parent/child/name to parent */ s[1] = 0; } #ifdef UCSC #endif /* UCSC */ char *qacPathFromFaPath(char *faName) /* Given an fa path name return path name of corresponding qac * file. Copy this result somewhere if you wish to keep it * longer than the next call to qacPathFromFaPath. */ { static char qacPath[512]; -char dir[256], name[128], ext[64]; +char dir[512], name[128], ext[64]; upOneDirFromFile(faName, dir, name, ext); safef(qacPath, sizeof(qacPath), "%sqac/%s.qac", dir, name); return qacPath; } #ifdef SANGER char *qacPathFromFaPath(char *faName) /* Given an fa path name return path name of corresponding qac * file. Copy this result somewhere if you wish to keep it * longer than the next call to qacPathFromFaPath. */ { static char qacPath[512]; strcpy(qacPath, faName); chopSuffix(qacPath);