src/hg/hgTracks/sampleTracks.c 1.9
1.9 2009/12/21 22:43:34 markd
remove fixed length restrion on size of item names. reduce per-item memory usage by removing unusaed array
Index: src/hg/hgTracks/sampleTracks.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/sampleTracks.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -B -U 4 -r1.8 -r1.9
--- src/hg/hgTracks/sampleTracks.c 3 Sep 2008 19:19:04 -0000 1.8
+++ src/hg/hgTracks/sampleTracks.c 21 Dec 2009 22:43:34 -0000 1.9
@@ -118,9 +118,9 @@
assert(X != NULL && Y != NULL && sampleCount > 0);
AllocVar(lf);
lf->grayIx = grayIx;
-strncpy(lf->name, sample->name, sizeof(lf->name));
+lf->name = cloneString(sample->name);
lf->orientation = orientFromChar(sample->strand[0]);
for (i=0; i<sampleCount; ++i)
{