]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
ivr menu tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Jan 2007 14:48:31 +0000 (14:48 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Jan 2007 14:48:31 +0000 (14:48 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3985 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index 1f6b5695ea3a8404afe9d9f076fd3ef2262c6832..d243166cb351cff3189bdd8582cc6e687a9fcff3 100644 (file)
@@ -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;
                }