1d8a8611535e7ee7e5a1ede5d619034952a6b81f
braney
  Wed Apr 15 12:52:03 2015 -0700
fix a hgTables problem with tracks with '.' in them in track hubs #15182

diff --git src/hg/lib/joiner.c src/hg/lib/joiner.c
index a826bac..ae0c9e7 100644
--- src/hg/lib/joiner.c
+++ src/hg/lib/joiner.c
@@ -978,31 +978,31 @@
 errAbort("%s not a dotted triple", s);
 }
 
 struct joinerDtf *joinerDtfFromDottedTriple(char *triple)
 /* Get joinerDtf from something in db.table.field format. */
 {
 char *s, *e;
 struct joinerDtf *dtf;
 AllocVar(dtf);
 s = triple;
 e = strchr(s, '.');
 if (e == NULL)
    notTriple(triple);
 dtf->database = cloneStringZ(s, e-s);
 s = e+1;
-e = strchr(s, '.');
+e = strrchr(s, '.');
 if (e == NULL)
    notTriple(triple);
 dtf->table = cloneStringZ(s, e-s);
 dtf->field = cloneString(e+1);
 return dtf;
 }
 
 void joinerDtfFree(struct joinerDtf **pDtf)
 /* Free up resources associated with joinerDtf. */
 {
 struct joinerDtf *dtf = *pDtf;
 if (dtf != NULL)
     {
     freeMem(dtf->database);
     freeMem(dtf->table);