mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 01:45:11 +00:00
Merged revisions 175295 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r175295 | russell | 2009-02-12 14:45:47 -0600 (Thu, 12 Feb 2009) | 2 lines Avoid using ast_strdupa() in a loop. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@175297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -7148,7 +7148,8 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action
|
||||
/* XXX This needs to be done per media stream, since it's media stream specific */
|
||||
iterator = req->sdp_start;
|
||||
while ((a = get_sdp_iterate(&iterator, req, "a"))[0] != '\0') {
|
||||
char* mimeSubtype = ast_strdupa(a); /* ensures we have enough space */
|
||||
char mimeSubtype[128];
|
||||
ast_copy_string(mimeSubtype, a, sizeof(mimeSubtype));
|
||||
if (option_debug > 1) {
|
||||
int breakout = FALSE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user