7a46e5f195b269e0f0e1639e850c4b35bf5bd9f9
tdreszer
  Fri Oct 14 16:49:23 2011 -0700
Slight adjustment to one API
diff --git src/hg/lib/hui.c src/hg/lib/hui.c
index 5641573..521c1d1 100644
--- src/hg/lib/hui.c
+++ src/hg/lib/hui.c
@@ -5854,34 +5854,35 @@
 
 
 boolean isWigMafProt = FALSE;
 
 if (strstr(tdb->type, "wigMafProt")) isWigMafProt = TRUE;
 
 puts("<TABLE><TR><TD VALIGN=\"TOP\">");
 
 if (consWiggles && consWiggles->next)
     {
     /* check for alternate conservation wiggles -- create checkboxes */
     puts("<P STYLE=\"margin-top:10;\"><B>Conservation:</B>" );
     boolean first = TRUE;
     for (consWig = consWiggles; consWig != NULL; consWig = consWig->next)
         {
-        char *wigVar = wigMafWiggleVar(name, consWig);
-        char *wigVarSuffix = wigVar + strlen(name) + 1;
+        char *wigVarSuffix = NULL;
+        char *wigVar = wigMafWiggleVar(name, consWig, &wigVarSuffix);
         cgiMakeCheckBox(wigVar,
                         cartUsualBooleanClosestToHome(cart, tdb, viewLevel, wigVarSuffix, first));
+        freeMem(wigVar);
         first = FALSE;
         subChar(consWig->uiLabel, '_', ' ');
         printf ("%s&nbsp;", consWig->uiLabel);
         }
     }
 
 struct wigMafSpecies *wmSpeciesList = wigMafSpeciesTable(cart, tdb, name, db);
 struct wigMafSpecies *wmSpecies;
 
 if (isWigMafProt)
     puts("<B>Multiple alignment amino acid-level:</B><BR>" );
 else
     puts("<B>Multiple alignment base-level:</B><BR>" );
 
 safef(option, sizeof option, "%s.%s", name, MAF_DOT_VAR);