Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
d09eb198
Commit
d09eb198
authored
Apr 24, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
example: Prevent possible non-NULL terminated string
parent
44395d81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
examples/simple-example.c
examples/simple-example.c
+1
-0
No files found.
examples/simple-example.c
View file @
d09eb198
...
@@ -308,6 +308,7 @@ parse_candidate(char *scand, guint _stream_id)
...
@@ -308,6 +308,7 @@ parse_candidate(char *scand, guint _stream_id)
cand
->
stream_id
=
_stream_id
;
cand
->
stream_id
=
_stream_id
;
cand
->
transport
=
NICE_CANDIDATE_TRANSPORT_UDP
;
cand
->
transport
=
NICE_CANDIDATE_TRANSPORT_UDP
;
strncpy
(
cand
->
foundation
,
tokens
[
0
],
NICE_CANDIDATE_MAX_FOUNDATION
);
strncpy
(
cand
->
foundation
,
tokens
[
0
],
NICE_CANDIDATE_MAX_FOUNDATION
);
cand
->
foundation
[
NICE_CANDIDATE_MAX_FOUNDATION
-
1
]
=
0
;
cand
->
priority
=
atoi
(
tokens
[
1
]);
cand
->
priority
=
atoi
(
tokens
[
1
]);
if
(
!
nice_address_set_from_string
(
&
cand
->
addr
,
tokens
[
2
]))
{
if
(
!
nice_address_set_from_string
(
&
cand
->
addr
,
tokens
[
2
]))
{
...
...
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