diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-17 06:18:09 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-17 06:18:09 +0000 |
commit | 27aba97f9b70d93d0de42a5cb48ef8f631ad4cf3 (patch) | |
tree | 332093dfca84217f587d2b8ebc05a803e953b88b /channels | |
parent | 4cce0ae9f200f4d8a00e9bf633a120fab6a30a68 (diff) |
Use pointer instead of un-needed buffer. Thanks Kevin!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@27684 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 189e4f064..964eee1d3 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4747,7 +4747,7 @@ static int add_sdp(struct sip_request *resp, struct sip_pvt *p) char c[256]; char t[256]; char b[256]; - char hold[256]; + char *hold; char m_audio[256]; char m_video[256]; char a_audio[1024]; @@ -4828,9 +4828,9 @@ static int add_sdp(struct sip_request *resp, struct sip_pvt *p) ast_build_string(&m_video_next, &m_video_left, "m=video %d RTP/AVP", ntohs(vdest.sin_port)); if (ast_test_flag(&p->flags[0], SIP_CALL_ONHOLD)) - sprintf(hold, "a=recvonly"); + hold = "a=recvonly"; else - sprintf(hold, "a=sendrecv"); + hold = "a=sendrecv"; /* Prefer the codec we were requested to use, first, no matter what */ if (capability & p->prefcodec) { |