Fix newline issue (bug #4632)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2005-08-05 21:44:19 +00:00
parent 52594b6b12
commit f08acd7b45
3 changed files with 9 additions and 2 deletions

View File

@@ -1019,6 +1019,7 @@ static int console_sendtext(int fd, int argc, char *argv[])
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;