Index: src/hg/hgTracks/bamTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/bamTrack.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -b -B -U 4 -r1.20 -r1.21
--- src/hg/hgTracks/bamTrack.c	14 Dec 2009 23:19:57 -0000	1.20
+++ src/hg/hgTracks/bamTrack.c	21 Dec 2009 22:43:32 -0000	1.21
@@ -131,9 +131,9 @@
 const bam1_core_t *core = &bam->core;
 struct linkedFeatures *lf;
 AllocVar(lf);
 lf->score = core->qual;
-safef(lf->name, sizeof(lf->name), bam1_qname(bam));
+lf->name = cloneString(bam1_qname(bam));
 lf->orientation = (core->flag & BAM_FREVERSE) ? -1 : 1;
 int length;
 lf->components = sfFromNumericCigar(bam, &length);
 lf->start = lf->tallStart = core->pos;
@@ -216,9 +216,9 @@
  * toward the given coord. */
 {
 struct linkedFeatures *lf;
 AllocVar(lf);
-safef(lf->name, sizeof(lf->name), "stub");
+lf->name = cloneString("stub");
 lf->orientation = orientation;
 struct simpleFeature *sf;
 AllocVar(sf);
 sf->start = sf->end = lf->start = lf->end = lf->tallStart = lf->tallEnd = startEnd;

