aboutsummaryrefslogtreecommitdiffstats
path: root/dsp.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-10 20:20:18 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-10 20:20:18 +0000
commit70e880faa3c3305486030b0b8055267f85491052 (patch)
treeee3ae7df18d3418bace731016031095fd7114e61 /dsp.c
parent03e851531a63cfb57f2d3d674d6302dfa03cd288 (diff)
Fix off by one (bug #2872, but different solution)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4198 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'dsp.c')
-rwxr-xr-xdsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dsp.c b/dsp.c
index e637aa65b..a906119fe 100755
--- a/dsp.c
+++ b/dsp.c
@@ -1606,7 +1606,7 @@ static void ast_dsp_prog_reset(struct ast_dsp *dsp)
for (x=0;x<sizeof(modes[dsp->progmode].freqs) / sizeof(modes[dsp->progmode].freqs[0]);x++) {
if (modes[dsp->progmode].freqs[x]) {
goertzel_init(&dsp->freqs[x], (float)modes[dsp->progmode].freqs[x], dsp->gsamp_size);
- max = x;
+ max = x + 1;
}
}
dsp->freqcount = max;