]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
menu->inlen is allways max bound size +1 (for terminating null) so we need to pass...
authorMichael Jerris <mike@jerris.com>
Sun, 4 Feb 2007 19:38:13 +0000 (19:38 +0000)
committerMichael Jerris <mike@jerris.com>
Sun, 4 Feb 2007 19:38:13 +0000 (19:38 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4118 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index a6fc980c6c3e8be898a219f20a8f02d534a9cbbf..5bb59f4933093056cdd6b471d4969080fad4a83d 100644 (file)
@@ -4209,7 +4209,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_menu_execute(switch_core_session_t *s
                memset(arg, 0, sizeof(arg));
 
                memset(menu->buf, 0, menu->inlen);
-               status = play_or_say(session, menu, greeting_sound, menu->inlen);
+               status = play_or_say(session, menu, greeting_sound, menu->inlen - 1);
 
                if (!switch_strlen_zero(menu->buf)) {
                        for(ap = menu->actions; ap ; ap = ap->next) {