diff options
Diffstat (limited to 'examples/threaded-example.c')
-rw-r--r-- | examples/threaded-example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/threaded-example.c b/examples/threaded-example.c index a1eafae..6df6ac2 100644 --- a/examples/threaded-example.c +++ b/examples/threaded-example.c @@ -333,7 +333,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]); |