[svn-commits] trunk r27684 - /trunk/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue May 16 23:18:10 MST 2006


Author: oej
Date: Wed May 17 01:18:09 2006
New Revision: 27684

URL: http://svn.digium.com/view/asterisk?rev=27684&view=rev
Log:
Use pointer instead of un-needed buffer. Thanks Kevin!

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=27684&r1=27683&r2=27684&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed May 17 01:18:09 2006
@@ -4747,7 +4747,7 @@
 	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 @@
 	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) {



More information about the svn-commits mailing list