From: Russell Bryant Date: Fri, 12 Nov 2004 13:48:42 +0000 (+0000) Subject: fix off by one (bug #2827) X-Git-Tag: 1.0.11.1~389 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdabdcbf1ee8630f2b24a4ab315583683fc85190;p=thirdparty%2Fasterisk.git fix off by one (bug #2827) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4223 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/dsp.c b/dsp.c index e637aa65bd..784365c155 100755 --- a/dsp.c +++ b/dsp.c @@ -1124,7 +1124,7 @@ static int __ast_dsp_call_progress(struct ast_dsp *dsp, short *s, int len) if (pass > dsp->gsamp_size - dsp->gsamps) pass = dsp->gsamp_size - dsp->gsamps; for (x=0;xfreqcount;y++) + for (y=0;y<=dsp->freqcount;y++) goertzel_sample(&dsp->freqs[y], s[x]); dsp->genergy += s[x] * s[x]; }