]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
change types for len to uint32_t.
authorMichael Jerris <mike@jerris.com>
Fri, 22 Dec 2006 19:03:25 +0000 (19:03 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 22 Dec 2006 19:03:25 +0000 (19:03 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3799 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c
src/switch_ivr.c

index fd1e10e3fe330a2d3dff56deb336a79a8f7fbcd0..25808dc22e962b3fc651b1f7095d7f16a8a354bf 100644 (file)
@@ -151,11 +151,11 @@ static int parse_exten(switch_core_session_t *session, switch_xml_t xexten, swit
                        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;
index 75ecc3bf0dcda9c12803c05839ebab1d777e6746..a919c35d89c886aa373fe933d1b1c99b7d1374cf 100644 (file)
@@ -4488,7 +4488,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
             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 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
                     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);