mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 16:58:35 +00:00
fix read beyond buffer length error
This commit is contained in:
parent
32c0bfde6b
commit
a9a852477a
@ -736,7 +736,7 @@ char *vmivr_menu_get_input_set(switch_core_session_t *session, vmivr_profile_t *
|
|||||||
switch_event_add_header(menu.phrase_params, SWITCH_STACK_BOTTOM, "IVR-Retry-Left", "%d", retry);
|
switch_event_add_header(menu.phrase_params, SWITCH_STACK_BOTTOM, "IVR-Retry-Left", "%d", retry);
|
||||||
|
|
||||||
/* Find the last entry and append this one to it */
|
/* Find the last entry and append this one to it */
|
||||||
for (i=0; menu.dtmfa[i] && i < 16; i++){
|
for (i=0; i < 16 && menu.dtmfa[i]; i++){
|
||||||
}
|
}
|
||||||
menu.dtmfa[i] = (char *) input_mask;
|
menu.dtmfa[i] = (char *) input_mask;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user