mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Fix wrong code.
This commit is contained in:
parent
47e06165fe
commit
5cd4d10254
1 changed files with 2 additions and 2 deletions
|
|
@ -100,8 +100,8 @@ static LinphoneCore* configure_lc_from(LinphoneCoreVTable* v_table, const char*
|
|||
if (path==NULL) path=".";
|
||||
|
||||
if (path && file){
|
||||
sprintf(filepath, "%s/%s", path, file);
|
||||
CU_ASSERT_TRUE_FATAL(ortp_file_exist(path)==0);
|
||||
snprintf(filepath, sizeof(filepath), "%s/%s", path, file);
|
||||
CU_ASSERT_TRUE_FATAL(ortp_file_exist(filepath)==0);
|
||||
}
|
||||
|
||||
lc = linphone_core_new(v_table,NULL,*filepath!='\0' ? filepath : NULL,NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue