diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-05-06 19:32:29 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-05-06 19:32:29 +0000 |
commit | ff01792e500be68a65bde73e29aa3ba4f79ede9c (patch) | |
tree | 1dda910483e79e71be02a3684f1a022810e39957 | |
parent | e9f62e1d4125c8f93aa6be64e281c4605e5aa2c7 (diff) |
Merged revisions 115415 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r115415 | tilghman | 2008-05-06 14:31:39 -0500 (Tue, 06 May 2008) | 2 lines
Don't print the terminating NUL. (Closes issue #12589)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115416 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/asterisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c index 8b1cc7460..5bda2c97b 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -2454,7 +2454,7 @@ static void ast_remotecontrol(char * data) /* Skip verbose lines */ if (*curline != 127) { not_written = 0; - write(STDOUT_FILENO, curline, nextline - curline + (*nextline == '\0' ? 1 : 0)); + write(STDOUT_FILENO, curline, nextline - curline); } curline = nextline; } while (!ast_strlen_zero(curline)); |