From cc8a153f91b6ac07740d662141f5d58a5396a44e Mon Sep 17 00:00:00 2001 From: Tim Anderson Date: Fri, 15 Mar 2024 18:40:16 -0600 Subject: [PATCH] fix issue where headers were 1 too short --- src/FastaVector.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FastaVector.c b/src/FastaVector.c index d936ad3..16da40e 100644 --- a/src/FastaVector.c +++ b/src/FastaVector.c @@ -307,8 +307,7 @@ void fastaVectorGetHeader(const struct FastaVector *const fastaVector, const size_t headerEndPosition = fastaVector->metadata.data[headerIndex].headerEndPosition; - // the -1 removes the terminator - *headerLength = headerEndPosition - headerStartPosition - 1; + *headerLength = headerEndPosition - headerStartPosition; *headerPtr = &fastaVector->header.charData[headerStartPosition]; } }