From: Anthony Minessale Date: Fri, 17 Jun 2011 20:56:27 +0000 (-0500) Subject: missed an = X-Git-Tag: v1.2-rc1~108^2^2~160 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0128bce4ac222c6e0ee17ee9f89b63678ff8cf97;p=thirdparty%2Ffreeswitch.git missed an = --- diff --git a/src/mod/applications/mod_spandsp/mod_spandsp_dsp.c b/src/mod/applications/mod_spandsp/mod_spandsp_dsp.c index f7387b9e8d..75042c577e 100644 --- a/src/mod/applications/mod_spandsp/mod_spandsp_dsp.c +++ b/src/mod/applications/mod_spandsp/mod_spandsp_dsp.c @@ -365,7 +365,7 @@ static switch_bool_t tone_detector_process_buffer(tone_detector_t *detector, voi detector->detected_tone = -1; super_tone_rx(detector->spandsp_detector, data, len); - if (detector->detected_tone > -1 && detector->detected_tone < detector->descriptor->idx && detector->detected_tone < MAX_TONES) { + if (detector->detected_tone > -1 && detector->detected_tone <= detector->descriptor->idx && detector->detected_tone < MAX_TONES) { *key = detector->descriptor->tone_keys[detector->detected_tone]; return SWITCH_TRUE; }