mirror of
https://github.com/lh3/minimap2.git
synced 2026-10-05 00:38:11 +08:00
r187: fixed non-terminated sam output (#3)
Only happen to unmapped read, with quality, and in the SAM output
This commit is contained in:
@@ -145,4 +145,5 @@ void mm_write_sam(kstring_t *s, const mm_idx_t *mi, const bseq1_t *t, const mm_r
|
|||||||
}
|
}
|
||||||
write_tags(s, r);
|
write_tags(s, r);
|
||||||
}
|
}
|
||||||
|
s->s[s->l] = 0; // we always have room for an extra byte (see str_enlarge)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user