mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user