summaryrefslogtreecommitdiff
path: root/examples/simple-example.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple-example.c')
-rw-r--r--examples/simple-example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple-example.c b/examples/simple-example.c
index a26c422..b4da1e2 100644
--- a/examples/simple-example.c
+++ b/examples/simple-example.c
@@ -311,7 +311,7 @@ parse_candidate(char *scand, guint _stream_id)
cand->component_id = 1;
cand->stream_id = _stream_id;
cand->transport = NICE_CANDIDATE_TRANSPORT_UDP;
- strncpy(cand->foundation, tokens[0], NICE_CANDIDATE_MAX_FOUNDATION);
+ strncpy(cand->foundation, tokens[0], NICE_CANDIDATE_MAX_FOUNDATION - 1);
cand->foundation[NICE_CANDIDATE_MAX_FOUNDATION - 1] = 0;
cand->priority = atoi (tokens[1]);