mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
Fix crash with very large country code
This commit is contained in:
parent
d04693360c
commit
a56c6bb514
1 changed files with 2 additions and 2 deletions
|
|
@ -638,11 +638,11 @@ char* linphone_proxy_config_normalize_phone_number(LinphoneProxyConfig *proxy, c
|
|||
LinphoneDialPlan dialplan = *linphone_dial_plan_by_ccc(tmpproxy->dial_prefix); //copy dial plan;
|
||||
char * flatten=flatten_number(username);
|
||||
ms_debug("Flattened number is '%s' for '%s'",flatten, username);
|
||||
|
||||
|
||||
if (tmpproxy->dial_prefix){
|
||||
if (strcmp(tmpproxy->dial_prefix,dialplan.ccc) != 0){
|
||||
//probably generic dialplan, preserving proxy dial prefix
|
||||
strcpy(dialplan.ccc,tmpproxy->dial_prefix);
|
||||
strncpy(dialplan.ccc,tmpproxy->dial_prefix,sizeof(dialplan.ccc));
|
||||
}
|
||||
}
|
||||
/*if proxy has a dial prefix, modify phonenumber accordingly*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue