From: mikaels Date: Tue, 4 Aug 2009 20:44:19 +0000 (+0000) Subject: fixed a bug where the terminal null wasn't being saved in SaveAlignment. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d5fd4c06004e923f00048d2d32a3dbbbf29033b5;p=bamtools.git fixed a bug where the terminal null wasn't being saved in SaveAlignment. git-svn-id: svn+ssh://gene.bc.edu/home/subversion/Derek/BamTools/trunk@24 9efb377e-2e27-44b9-b91a-ec4abb80ed8b --- diff --git a/BamWriter.cpp b/BamWriter.cpp index 32e7047..694241d 100644 --- a/BamWriter.cpp +++ b/BamWriter.cpp @@ -362,7 +362,7 @@ void BamWriter::SaveAlignment(const BamAlignment& al) { const unsigned int encodedQueryLen = encodedQuery.size(); // store the tag data length - const unsigned int tagDataLength = al.TagData.size(); + const unsigned int tagDataLength = al.TagData.size() + 1; // assign the BAM core data unsigned int buffer[8];