r187: fixed non-terminated sam output (#3)

Only happen to unmapped read, with quality, and in the SAM output
This commit is contained in:
Heng Li 2017-07-18 15:20:29 -04:00
parent 947cf162be
commit b9b0b6f49c
2 changed files with 2 additions and 1 deletions

View File

@ -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)
}

2
main.c
View File

@ -10,7 +10,7 @@
#include "minimap.h"
#include "mmpriv.h"
#define MM_VERSION "2.0-r180-dirty"
#define MM_VERSION "2.0-r187-dirty"
void liftrlimit()
{