[Asterisk-cvs] asterisk dsp.c,1.29,1.30

markster at lists.digium.com markster at lists.digium.com
Wed Nov 10 15:18:54 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv29954

Modified Files:
	dsp.c 
Log Message:
Fix off by one (bug #2872, but different solution)


Index: dsp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/dsp.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- dsp.c	19 Aug 2004 18:52:56 -0000	1.29
+++ dsp.c	10 Nov 2004 20:20:18 -0000	1.30
@@ -1606,7 +1606,7 @@
 	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;




More information about the svn-commits mailing list