X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fkseq.h;h=4fafd8546408269ca1f794de3e759e0218256e0b;hb=9537fe433ae5b59162a2f0a0834398c9fb4b7907;hp=bbe012552ff3b2ac047ddd10655e80827bbb4008;hpb=4e791549f24e86c3d98632c0215ea6ad6436e6ad;p=fastq-tools.git diff --git a/src/kseq.h b/src/kseq.h index bbe0125..4fafd85 100644 --- a/src/kseq.h +++ b/src/kseq.h @@ -197,7 +197,7 @@ typedef struct __kstring_t { seq->qual.m = seq->seq.m; \ seq->qual.s = (char*)realloc(seq->qual.s, seq->qual.m); \ } \ - while ((c = ks_getc(ks)) != -1 && c != '\n'); /* skip the rest of '+' line */ \ + ks_getuntil(ks, '\n', &seq->comment, &c); \ if (c == -1) return -2; /* we should not stop here */ \ while ((c = ks_getc(ks)) != -1 && seq->qual.l < seq->seq.l) \ if (c >= 33 && c <= 127) seq->qual.s[seq->qual.l++] = (unsigned char)c; \