diff --git a/Main/src/Image.h b/Main/src/Image.h index e8b1acb4..8768ca43 100644 --- a/Main/src/Image.h +++ b/Main/src/Image.h @@ -418,7 +418,7 @@ const TDecoderMethod method; bool resetDecoderOnIndex; DWORD iNextTime,nLogTimes; - TLogTime indexPulses[Revolution::MAX+1]; + TLogTime indexPulses[Revolution::MAX+2]; // "+2" = "+1+1" = "+A+B", A = tail IndexPulse of last possible Revolution, B = terminator BYTE iNextIndexPulse,nIndexPulses; TProfile profile; TLogTime currentTime; diff --git a/Main/src/Image_TrackRW.cpp b/Main/src/Image_TrackRW.cpp index 32881529..a0bbcd2a 100644 --- a/Main/src/Image_TrackRW.cpp +++ b/Main/src/Image_TrackRW.cpp @@ -1415,7 +1415,7 @@ void CImage::CTrackReaderWriter::AddIndexTime(TLogTime logTime){ // appends LogicalTime representing the position of the index pulse on the disk - ASSERT( nIndexPulses=0 ); indexPulses[nIndexPulses++]=logTime; indexPulses[nIndexPulses]=INT_MAX;