aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-12 20:48:13 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-12 20:48:13 +0000
commit14a613250af90c4d6d0605f4bc54a92b86878074 (patch)
tree6cb33c55a4650341d976246f075a441c4ea8392b /channels
parentb921188ca694792c416ce89f9c3ba17e3c00b175 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.6.1@175297 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 747be56d2..6375c918d 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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;