[Asterisk-cvs] asterisk/channels chan_alsa.c,1.26,1.27 chan_oss.c,1.31,1.32 chan_sip.c,1.471,1.472

markster at lists.digium.com markster at lists.digium.com
Tue Aug 17 20:07:09 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory localhost.localdomain:/tmp/cvs-serv13836/channels

Modified Files:
	chan_alsa.c chan_oss.c chan_sip.c 
Log Message:
Fix minor typos (bug #2260)


Index: chan_alsa.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_alsa.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- chan_alsa.c	8 Aug 2004 17:15:02 -0000	1.26
+++ chan_alsa.c	17 Aug 2004 23:53:15 -0000	1.27
@@ -969,7 +969,7 @@
 
 static char dial_usage[] =
 "Usage: dial [extension[@context]]\n"
-"       Dials a given extensison (";
+"       Dials a given extension (and context if specified)\n";
 
 
 static struct ast_cli_entry myclis[] = {

Index: chan_oss.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_oss.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- chan_oss.c	12 Aug 2004 03:19:19 -0000	1.31
+++ chan_oss.c	17 Aug 2004 23:53:15 -0000	1.32
@@ -925,7 +925,7 @@
 
 static char dial_usage[] =
 "Usage: dial [extension[@context]]\n"
-"       Dials a given extensison (";
+"       Dials a given extensison (and context if specified)\n";
 
 static int console_transfer(int fd, int argc, char *argv[])
 {

Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.471
retrieving revision 1.472
diff -u -d -r1.471 -r1.472
--- chan_sip.c	17 Aug 2004 14:26:25 -0000	1.471
+++ chan_sip.c	17 Aug 2004 23:53:15 -0000	1.472
@@ -716,7 +716,7 @@
 static int __sip_reliable_xmit(struct sip_pvt *p, int seqno, int resp, char *data, int len, int fatal)
 {
 	struct sip_pkt *pkt;
-	pkt = malloc(sizeof(struct sip_pkt) + len);
+	pkt = malloc(sizeof(struct sip_pkt) + len + 1);
 	if (!pkt)
 		return -1;
 	memset(pkt, 0, sizeof(struct sip_pkt));
@@ -726,6 +726,7 @@
 	pkt->owner = p;
 	pkt->seqno = seqno;
 	pkt->flags = resp;
+	pkt->data[len] = '\0';
 	if (fatal)
 		pkt->flags |= FLAG_FATAL;
 	/* Schedule retransmission */




More information about the svn-commits mailing list