mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 06:38:08 +00:00
Fix compilation with Visual Studio.
This commit is contained in:
parent
ceb8533cf9
commit
5f9dc1c5d8
1 changed files with 5 additions and 2 deletions
|
|
@ -57,11 +57,14 @@ static int linphone_remote_provisioning_load_file( LinphoneCore* lc, const char*
|
|||
FILE* f = fopen(file_path, "r");
|
||||
|
||||
if( f ){
|
||||
long fsize;
|
||||
char* provisioning;
|
||||
|
||||
fseek(f, 0, SEEK_END);
|
||||
long fsize = ftell(f);
|
||||
fsize = ftell(f);
|
||||
fseek(f, 0, SEEK_SET);
|
||||
|
||||
char* provisioning = ms_malloc(fsize + 1);
|
||||
provisioning = ms_malloc(fsize + 1);
|
||||
provisioning[fsize]='\0';
|
||||
if (fread(provisioning, fsize, 1, f)==0){
|
||||
ms_error("Could not read xml provisioning file from %s",file_path);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue