35226edec48008ed881612dd4a9c25d834c0c34e kate Thu Feb 12 13:32:12 2015 -0800 Readability changes diff --git src/hg/lib/hui.c src/hg/lib/hui.c index 1c40f2c..8860f06 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -6851,62 +6851,63 @@ } } } } puts(""); freeMem(matchedViewTracks); return TRUE; } char *compositeLabelWithVocabLink(char *db,struct trackDb *parentTdb, struct trackDb *childTdb, char *vocabType, char *label) // If the parentTdb has a controlledVocabulary setting and the vocabType is found, // then label will be wrapped with the link to display it. Return string is cloned. { char *vocab = trackDbSetting(parentTdb, "controlledVocabulary"); -(void)metadataForTable(db,childTdb,NULL); if (vocab == NULL) return cloneString(label); // No wrapping! -char *words[15]; -int count,ix; -boolean found=FALSE; -if ((count = chopByWhite(cloneString(vocab), words,15)) <= 1) +#define BUFSIZ 16 +char *words[BUFSIZ]; +int count; +if ((count = chopByWhite(cloneString(vocab), words, BUFSIZ)) <= 1) return cloneString(label); char *suffix = NULL; char *rootLabel = labelRoot(label, &suffix); +boolean found = FALSE; +int ix; for (ix=1;ix%c" #else///ifndef BUTTONS_BY_CSS #define PM_BUTTON_UC "