Skip to content

Commit

Permalink
fix issue where headers were 1 too short
Browse files Browse the repository at this point in the history
  • Loading branch information
Sawwave committed Mar 16, 2024
1 parent dd359c6 commit cc8a153
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/FastaVector.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
Expand Down

0 comments on commit cc8a153

Please sign in to comment.