967b1ecc11ceda965dc043f2bf607b8ffce4ac2d galt Tue Dec 31 23:39:34 2024 -0800 minor compilter fix for ccCCp util. diff --git src/utils/ccCp/ccCp.c src/utils/ccCp/ccCp.c index 9bb3195..a3045fa 100644 --- src/utils/ccCp/ccCp.c +++ src/utils/ccCp/ccCp.c @@ -109,31 +109,31 @@ return NULL; } int netSwitchCmp(const void *va, const void *vb) /* Compare two netSwitchs to sort with most nodes first. */ { const struct netSwitch *a = *((struct netSwitch **)va); const struct netSwitch *b = *((struct netSwitch **)vb); return b->machCount - a->machCount; } char *fullPathName(char *relName) /* Return full version of path name. */ { char firstChar = relName[0]; -char fullPath[512]; +char fullPath[1024]; char dir[512]; if (firstChar == '/' || firstChar == '~') return cloneString(relName); if (getcwd(dir, sizeof(dir)) == NULL) errAbort("fullPathName: getcwd failed!"); sprintf(fullPath, "%s/%s", dir, relName); return cloneString(fullPath); } struct machine *shuffleSwitches(struct netSwitch *nsList) /* Return machine list that is shuffled from switch to switch. */ { struct netSwitch *ns; struct machine *machList = NULL, *mach;