From 2ccae56fb17ac87daa91b370ef79b4ef58719440 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sat, 26 Apr 2008 06:20:02 -0500 Subject: [PATCH] Correct indexing error in peakfile reader. --- Timeline/Peaks.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Timeline/Peaks.C b/Timeline/Peaks.C index 8e5244c..45de37a 100644 --- a/Timeline/Peaks.C +++ b/Timeline/Peaks.C @@ -135,7 +135,7 @@ Peaks::read_peakfile_peaks ( Peak *peaks, nframes_t s, int npeaks, int chunksize const Peak *pb = pbuf + j; - for ( int k = len * channels; k--; pb += channels ) + for ( int k = len; k--; pb += channels ) { if ( pb->max > p->max ) p->max = pb->max;