Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
5f9dc1c5
Commit
5f9dc1c5
authored
Apr 22, 2014
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation with Visual Studio.
parent
ceb8533c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
coreapi/remote_provisioning.c
coreapi/remote_provisioning.c
+5
-2
No files found.
coreapi/remote_provisioning.c
View file @
5f9dc1c5
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment