fix parse err in originate code

This commit is contained in:
Anthony Minessale committed 2010-07-01 14:21:44 -05:00
1 parent 7898679b20
commit 1fba654845
3 files changed
+46 -5

No files matched your search

+3 -3
View File
@@ -2313,7 +2313,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
}
if (p == end) {
end = strchr(p, '[');
end = switch_strchr_strict(p, '[', " ");
}
p++;
@@ -2537,7 +2537,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
current_variable = NULL;
switch_event_add_header_string(var_event, SWITCH_STACK_BOTTOM, "originate_early_media", oglobals.early_ok ? "true" : "false");
printf("ASS %s\n", vdata);
if (vdata) {
char *var_array[1024] = { 0 };
int var_count = 0;
@@ -2552,7 +2552,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
char *pnext;
*next++ = '\0';
if ((pnext = strchr(next, '['))) {
if ((pnext = switch_strchr_strict(next, '[', " "))) {
next = pnext + 1;
}
}