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: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@175370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Russell Bryant 18 years ago
parent 36cdee6b70
commit 30e5135fec

@ -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) {

Loading…
Cancel
Save