[Asterisk-cvs]
asterisk/channels chan_alsa.c, 1.46, 1.47 chan_oss.c, 1.54, 1.55
markster
markster
Fri Aug 5 17:40:22 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv10061/channels
Modified Files:
chan_alsa.c chan_oss.c
Log Message:
Fix newline issue (bug #4632)
Index: chan_alsa.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_alsa.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- chan_alsa.c 10 Jul 2005 23:49:57 -0000 1.46
+++ chan_alsa.c 5 Aug 2005 21:44:19 -0000 1.47
@@ -901,6 +901,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.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- chan_oss.c 3 Aug 2005 19:58:34 -0000 1.54
+++ chan_oss.c 5 Aug 2005 21:44:19 -0000 1.55
@@ -1019,6 +1019,7 @@
sizeof(text2send) - strlen(text2send) - 1);
}
if (!ast_strlen_zero(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