From: Anthony Minessale Date: Thu, 18 Jan 2007 14:48:31 +0000 (+0000) Subject: ivr menu tweak X-Git-Tag: v1.0-beta1~1343 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aed84d41791fa2fdc18d7a8d201f778aa990e15b;p=thirdparty%2Ffreeswitch.git ivr menu tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3985 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 1f6b5695ea..d243166cb3 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -3965,7 +3965,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_menu_bind_action(switch_ivr_menu_t *m action->bind = switch_core_strdup(menu->pool, bind); action->next = menu->actions; action->arg = switch_core_strdup(menu->pool, arg); - len = (uint32_t)strlen(action->bind); + len = (uint32_t)strlen(action->bind) + 1; if (len > menu->inlen) { menu->inlen = len; } @@ -3986,7 +3986,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_menu_bind_function(switch_ivr_menu_t action->bind = bind; action->next = menu->actions; action->arg = switch_core_strdup(menu->pool, arg); - len = (uint32_t)strlen(action->bind); + len = (uint32_t)strlen(action->bind) + 1; if (len > menu->inlen) { menu->inlen = len; } @@ -4029,7 +4029,7 @@ static switch_status_t play_or_say(switch_core_session_t *session, switch_ivr_me len = 1; ptr = NULL; } else { - len = menu->inlen + 1; + len = menu->inlen; ptr = menu->ptr; }