[Freeswitch-svn] [commit] r3985 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Thu Jan 18 09:48:31 EST 2007


Author: anthm
Date: Thu Jan 18 09:48:31 2007
New Revision: 3985

Modified:
   freeswitch/trunk/src/switch_ivr.c

Log:
ivr menu tweak

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Thu Jan 18 09:48:31 2007
@@ -3965,7 +3965,7 @@
 		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 @@
 		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 @@
 			len = 1;
 			ptr = NULL;
 		} else {
-			len = menu->inlen + 1;
+			len = menu->inlen;
 			ptr = menu->ptr;
 		}
 



More information about the Freeswitch-svn mailing list