From: derek Date: Fri, 9 Sep 2011 16:07:31 +0000 (-0400) Subject: Merge branches 'master' and 'iodevice' into iodevice X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=88577e25bbf4b6b43642cb679c5f9f5cba026fec;hp=243a21d278e81d0a05997ad8bef109153443fb75;p=bamtools.git Merge branches 'master' and 'iodevice' into iodevice --- diff --git a/src/api/internal/BamStandardIndex_p.cpp b/src/api/internal/BamStandardIndex_p.cpp index 8993d43..6d8273e 100644 --- a/src/api/internal/BamStandardIndex_p.cpp +++ b/src/api/internal/BamStandardIndex_p.cpp @@ -125,7 +125,7 @@ bool BamStandardIndex::CalculateCandidateOffsets(const BaiReferenceSummary& refS // read chunk start & stop from buffer memcpy((char*)&chunkStart, m_buffer+offset, sizeof(uint64_t)); offset += sizeof(uint64_t); - memcpy((char*)&chunkStop, m_buffer, sizeof(uint64_t)); + memcpy((char*)&chunkStop, m_buffer+offset, sizeof(uint64_t)); offset += sizeof(uint64_t); // swap endian-ness if necessary