diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-12 20:45:47 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-12 20:45:47 +0000 |
commit | 0ee8c277d76485670ddb57117d387f79e85ff9e6 (patch) | |
tree | 987d1952b4e77cd5b458dd0e9f318684cbd674c3 /channels | |
parent | 48f033b1abb406cdab11fe03f8427beb02180fe1 (diff) |
Avoid using ast_strdupa() in a loop.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@175295 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index bfbdba385..b5dbdeca8 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7670,7 +7670,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; |