src/hg/hgTracks/encode.c 1.23
1.23 2009/12/21 22:43:33 markd
remove fixed length restrion on size of item names. reduce per-item memory usage by removing unusaed array
Index: src/hg/hgTracks/encode.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/encode.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -b -B -U 4 -r1.22 -r1.23
--- src/hg/hgTracks/encode.c 1 Nov 2009 19:46:03 -0000 1.22
+++ src/hg/hgTracks/encode.c 21 Dec 2009 22:43:33 -0000 1.23
@@ -128,9 +128,9 @@
lf->filterColor = -1;
lf->orientation = orientFromChar(peak->strand[0]);
adjustBedScoreGrayLevel(tdb, (struct bed *)peak, scoreMin, scoreMax);
lf->grayIx = grayInRange((int)peak->score, scoreMin, scoreMax);
-safecpy(lf->name, sizeof(lf->name), peak->name);
+lf->name = cloneString(peak->name);
if (peak->blockCount > 0)
{
int i;
for (i = 0; i < peak->blockCount; i++)