]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
terminate 'send text' with a newline (bug #4632)
authorRussell Bryant <russell@russellbryant.com>
Mon, 8 Aug 2005 18:15:32 +0000 (18:15 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 8 Aug 2005 18:15:32 +0000 (18:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6310 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_alsa.c
channels/chan_oss.c

index 481837949da3b1095a4713b8c16d13beb7139f80..7d3b89bd77243e86b335e2dd10b4630a2eea21eb 100755 (executable)
@@ -873,6 +873,7 @@ static int console_sendtext(int fd, int argc, char *argv[])
                        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 dbfe53f61724af3106e61ebb16aa0c18978dbc44..10e4359694969d0c4d336fc5d0aa10ee956aef48 100755 (executable)
@@ -855,6 +855,7 @@ static int console_sendtext(int fd, int argc, char *argv[])
                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;