summaryrefslogtreecommitdiff
path: root/main/sdp_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/sdp_state.c')
-rw-r--r--main/sdp_state.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/main/sdp_state.c b/main/sdp_state.c
index 2b75cc2a1..5f9ad5eb9 100644
--- a/main/sdp_state.c
+++ b/main/sdp_state.c
@@ -431,7 +431,7 @@ static struct sdp_state_capabilities *sdp_initialize_state_capabilities(const st
* are merged with the answer SDP to create the negotiated capabilities.
*
* If we are the SDP answerer, then the incoming offer SDP is merged with our
- * proposed capabilities to to create the negotiated capabilities. These negotiated
+ * proposed capabilities to create the negotiated capabilities. These negotiated
* capabilities are what we send in our answer SDP.
*
* Any changes that a user of the API performs will occur on the proposed capabilities.
@@ -2171,7 +2171,7 @@ static void update_ice(const struct ast_sdp_state *state, struct ast_rtp_instanc
/* Find all of the candidates */
for (attr_i = 0; attr_i < ast_sdp_m_get_a_count(remote_m_line); ++attr_i) {
- char foundation[32];
+ char foundation[33];
char transport[32];
char address[INET6_ADDRSTRLEN + 1];
char cand_type[6];
@@ -2187,7 +2187,7 @@ static void update_ice(const struct ast_sdp_state *state, struct ast_rtp_instanc
continue;
}
- if (sscanf(attr->value, "%31s %30u %31s %30u %46s %30u typ %5s %*s %23s %*s %30u",
+ if (sscanf(attr->value, "%32s %30u %31s %30u %46s %30u typ %5s %*s %23s %*s %30u",
foundation, &candidate.id, transport, (unsigned *)&candidate.priority, address,
&port, cand_type, relay_address, &relay_port) < 7) {
/* Candidate did not parse properly */
@@ -3409,4 +3409,3 @@ error:
return NULL;
}
-