22a69e4fe63f977e217b1aabfc0ad41df2990334 galt Tue Dec 31 23:34:43 2024 -0800 minor compilter fix for pslSpliceJunctions. diff --git src/utils/pslSpliceJunctions/pslSpliceJunctions.c src/utils/pslSpliceJunctions/pslSpliceJunctions.c index c20db7a..ce37c1c 100644 --- src/utils/pslSpliceJunctions/pslSpliceJunctions.c +++ src/utils/pslSpliceJunctions/pslSpliceJunctions.c @@ -49,32 +49,32 @@ { if (pslTStrand(transPsl) == '-') reverseUnsignedRange(&tStart, &tEnd, transPsl->tSize); struct dnaSeq *juncA = twoBitReadSeqFrag(genomeFh, transPsl->tName, tStart, tStart + 2); struct dnaSeq *juncB = twoBitReadSeqFrag(genomeFh, transPsl->tName, tEnd - 2, tEnd); if (pslTStrand(transPsl) == '-') { struct dnaSeq *hold = juncA; juncA = juncB; juncB = hold; reverseComplement(juncA->dna, 2); reverseComplement(juncB->dna, 2); } -safecpy(junc5p, sizeof(junc5p), juncA->dna); -safecpy(junc3p, sizeof(junc3p), juncB->dna); +safecpy(junc5p, 3, juncA->dna); +safecpy(junc3p, 3, juncB->dna); freeDnaSeq(&juncA); freeDnaSeq(&juncB); touppers(junc5p); touppers(junc3p); if (!isCanonicalJuncs(junc5p, junc3p)) { tolowers(junc5p); tolowers(junc3p); } } static void writeRow(FILE *juncsTsvFh, struct psl *transPsl, unsigned qStart, unsigned qEnd, unsigned tStart, unsigned tEnd, int iBlk, int tGapIdx, char *junc5p, char *junc3p)