src/hg/hgc/hgc.c 1.1545

1.1545 2009/05/20 18:08:22 angie
Increased string size for snp125 observed allele (blob not varchar!).
Index: src/hg/hgc/hgc.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/hgc.c,v
retrieving revision 1.1544
retrieving revision 1.1545
diff -b -B -U 4 -r1.1544 -r1.1545
--- src/hg/hgc/hgc.c	15 May 2009 09:25:54 -0000	1.1544
+++ src/hg/hgc/hgc.c	20 May 2009 18:08:22 -0000	1.1545
@@ -14765,9 +14765,9 @@
 void printSnp125FunctionInCDS(struct snp125 *snp, char *geneTable, char *geneTrack,
 			      struct genePred *gene, int exonIx, char *geneName)
 /* Show the effect of each observed allele of snp on the given exon of gene. */
 {
-char refAllele[256];
+char refAllele[1024];
 safecpy(refAllele, sizeof(refAllele), snp->refUCSC);
 boolean refIsAlpha = isalpha(refAllele[0]);
 boolean geneIsRc = sameString(gene->strand, "-"), snpIsRc = sameString(snp->strand, "-");
 if (geneIsRc && refIsAlpha)
@@ -14777,9 +14777,9 @@
 int snpCodonPos = 0;
 char refCodon[4], refAA = '\0';
 if (refIsSingleBase)
     getSnp125RefCodonAndSnpPos(snp, gene, exonIx, &snpCodonPos, refCodon, &refAA);
-char alleleStr[256];
+char alleleStr[1024];
 safecpy(alleleStr, sizeof(alleleStr), snp->observed);
 char *indivAlleles[64];
 int alleleCount = chopString(alleleStr, "/", indivAlleles, ArraySize(indivAlleles));
 int j;