Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
0bb0bb23
Commit
0bb0bb23
authored
Apr 15, 2014
by
Simon Morlat
Browse files
fix non-null terminated string in provisioning from file
parent
8c1be075
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
coreapi/remote_provisioning.c
coreapi/remote_provisioning.c
+1
-0
No files found.
coreapi/remote_provisioning.c
View file @
0bb0bb23
...
...
@@ -62,6 +62,7 @@ static int linphone_remote_provisioning_load_file( LinphoneCore* lc, const char*
fseek
(
f
,
0
,
SEEK_SET
);
char
*
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
);
status
=-
1
;
...
...
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