[Asterisk-cvs] asterisk/channels chan_alsa.c, 1.27.2.4, 1.27.2.5 chan_oss.c, 1.33.2.3, 1.33.2.4

russell russell
Mon Aug 8 14:11:54 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv8378/channels

Modified Files:
      Tag: v1-0
	chan_alsa.c chan_oss.c 
Log Message:
terminate 'send text' with a newline (bug #4632)


Index: chan_alsa.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_alsa.c,v
retrieving revision 1.27.2.4
retrieving revision 1.27.2.5
diff -u -d -r1.27.2.4 -r1.27.2.5
--- chan_alsa.c	24 Jun 2005 22:12:25 -0000	1.27.2.4
+++ chan_alsa.c	8 Aug 2005 18:15:32 -0000	1.27.2.5
@@ -873,6 +873,7 @@
 			strncat(text2send, argv[tmparg++], sizeof(text2send) - strlen(text2send) - 1);
 			strncat(text2send, " ", sizeof(text2send) - strlen(text2send) - 1);
 		}
+		text2send[strlen(text2send) - 1] = '\n';
 		f.data = text2send;
 		f.datalen = strlen(text2send) + 1;
 		grab_owner();

Index: chan_oss.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_oss.c,v
retrieving revision 1.33.2.3
retrieving revision 1.33.2.4
diff -u -d -r1.33.2.3 -r1.33.2.4
--- chan_oss.c	24 Jun 2005 22:12:25 -0000	1.33.2.3
+++ chan_oss.c	8 Aug 2005 18:15:32 -0000	1.33.2.4
@@ -855,6 +855,7 @@
 		strncat(text2send, " ", sizeof(text2send) - strlen(text2send) - 1);
 	}
 	if (strlen(text2send)) {
+		text2send[strlen(text2send) - 1] = '\n';
 		f.frametype = AST_FRAME_TEXT;
 		f.subclass = 0;
 		f.data = text2send;




More information about the svn-commits mailing list