r187: fixed non-terminated sam output (#3)
Only happen to unmapped read, with quality, and in the SAM output
This commit is contained in:
parent
947cf162be
commit
b9b0b6f49c
1
format.c
1
format.c
|
|
@ -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);
|
||||
}
|
||||
s->s[s->l] = 0; // we always have room for an extra byte (see str_enlarge)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue