diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-12 21:41:36 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-12 21:41:36 +0000 |
commit | d1130b78c8d967d3de16e68f5ded2babf1b2122c (patch) | |
tree | 2a1efe4a77c9156f909f091eb2da292d55fc37fb /channels | |
parent | 754679074a4d4b4fe42d7476ee06b86da9eb1250 (diff) |
Merged revisions 175368 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r175368 | russell | 2009-02-12 15:41:01 -0600 (Thu, 12 Feb 2009) | 2 lines
Remove useless string copy, and make sscanf safe again
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@175370 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6375c918d..ef7c4e001 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7149,7 +7149,6 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action iterator = req->sdp_start; while ((a = get_sdp_iterate(&iterator, req, "a"))[0] != '\0') { char mimeSubtype[128]; - ast_copy_string(mimeSubtype, a, sizeof(mimeSubtype)); if (option_debug > 1) { int breakout = FALSE; @@ -7237,7 +7236,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action } red_cp = red_fmtp; - } else if (sscanf(a, "rtpmap: %u %[^/]/", &codec, mimeSubtype) == 2) { + } else if (sscanf(a, "rtpmap: %u %127[^/]/", &codec, mimeSubtype) == 2) { /* We have a rtpmap to handle */ if (last_rtpmap_codec < SDP_MAX_RTPMAP_CODECS) { |