591cbd0e7a73bf20acc96b89b165bedb79206892 markd Sun May 14 19:33:37 2023 -0700 fixed incorrectly terminates string (how did this ever work?) diff --git src/lib/pslTransMap.c src/lib/pslTransMap.c index dd89577..7d87231 100644 --- src/lib/pslTransMap.c +++ src/lib/pslTransMap.c @@ -69,31 +69,31 @@ psl->qStarts[iBlk] *= 3; } } static struct psl* createMappedPsl(struct psl* inPsl, struct psl *mapPsl, int mappedPslMax) /* setup a PSL for the output alignment */ { char strand[3]; assert(pslTStrand(inPsl) == pslQStrand(mapPsl)); /* strand can be taken from both alignments, since common sequence is in same * orientation. */ strand[0] = pslQStrand(inPsl); strand[1] = pslTStrand(mapPsl); -strand[2] = '\n'; +strand[2] = '\0'; return pslNew(inPsl->qName, inPsl->qSize, 0, 0, mapPsl->tName, mapPsl->tSize, 0, 0, strand, mappedPslMax, 0); } static struct block blockFromPslBlock(struct psl* psl, int iBlock) /* fill in a block object from a psl block */ { struct block block; block.qStart = psl->qStarts[iBlock]; block.qEnd = psl->qStarts[iBlock] + psl->blockSizes[iBlock]; block.tStart = psl->tStarts[iBlock]; block.tEnd = psl->tStarts[iBlock] + psl->blockSizes[iBlock]; return block;