[Freeswitch-svn] [commit] r3799 - in freeswitch/trunk/src: . mod/dialplans/mod_dialplan_xml

Freeswitch SVN mikej at freeswitch.org
Fri Dec 22 14:03:26 EST 2006


Author: mikej
Date: Fri Dec 22 14:03:25 2006
New Revision: 3799

Modified:
   freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c
   freeswitch/trunk/src/switch_ivr.c

Log:
change types for len to uint32_t.

Modified: freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c
==============================================================================
--- freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c	(original)
+++ freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c	Fri Dec 22 14:03:25 2006
@@ -151,11 +151,11 @@
 			char *application = (char*) switch_xml_attr_soft(xaction, "application");
 			char *data = (char *) switch_xml_attr_soft(xaction, "data");
 			char *substituted = NULL;
-            switch_size_t len = 0;
+            uint32_t len = 0;
 			char *app_data = NULL;
 
 			if (field && strchr(expression, '(')) {
-                len = strlen(data) + strlen(field_data) + 10;
+                len = (uint32_t)(strlen(data) + strlen(field_data) + 10);
                 if (!(substituted = malloc(len))) {
                     switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "memory error!\n");
                     proceed = 0;

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Fri Dec 22 14:03:25 2006
@@ -4488,7 +4488,7 @@
             pcre *re = NULL;
             int proceed = 0, ovector[30];
             char *substituted = NULL;
-            switch_size_t len = 0;
+            uint32_t len = 0;
             char *odata = NULL;
             char *expanded = NULL;
             
@@ -4498,7 +4498,7 @@
                     char *func = (char *) switch_xml_attr_soft(action, "function");
 
                     if (strchr(pattern, '(') && strchr(adata, '$')) {
-                        len = strlen(data) + strlen(adata) + 10;
+                        len = (uint32_t)(strlen(data) + strlen(adata) + 10);
                         if (!(substituted = malloc(len))) {
                             switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Memory Error!\n");
                             switch_clean_re(re);



More information about the Freeswitch-svn mailing list