[farsight2/master] nice transm: Make sure foundation ends with a NUL byte
Olivier Crête
olivier.crete at collabora.co.uk
Tue May 12 09:01:51 PDT 2009
---
transmitters/nice/fs-nice-stream-transmitter.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index 6f0a85d..0745654 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -604,7 +604,7 @@ fs_candidate_to_nice_candidate (FsNiceStreamTransmitter *self,
nc->component_id = candidate->component_id;
if (candidate->foundation != NULL)
strncpy (nc->foundation, candidate->foundation,
- NICE_CANDIDATE_MAX_FOUNDATION);
+ NICE_CANDIDATE_MAX_FOUNDATION - 1);
nc->username = g_strdup(candidate->username);
nc->password = g_strdup(candidate->password);
--
1.5.6.5
More information about the farsight-commits
mailing list