]> sjero.net Git - linphone/commitdiff
Compilation fix.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Thu, 16 Aug 2012 12:27:21 +0000 (14:27 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Thu, 16 Aug 2012 12:27:21 +0000 (14:27 +0200)
coreapi/sal_eXosip2_sdp.c

index 9ca194199256438a5232cb1abbd5ea9394f0f596..e1e2341b577ff73f6c53b5b8260a512afe75002f 100644 (file)
@@ -514,7 +514,7 @@ int sdp_to_media_description(sdp_message_t *msg, SalMediaDescription *desc){
 
                /* Get media specific RTCP attribute */
                stream->rtcp_port = stream->rtp_port + 1;
-               snprintf(stream->rtcp_addr, sizeof(stream->rtcp_addr), stream->rtp_addr);
+               snprintf(stream->rtcp_addr, sizeof(stream->rtcp_addr), "%s", stream->rtp_addr);
                for (j = 0; ((attr = sdp_message_attribute_get(msg, i, j)) != NULL); j++) {
                        if ((keywordcmp("rtcp", attr->a_att_field) == 0) && (attr->a_att_value != NULL)) {
                                char tmp[256];