]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't print the terminating NUL. (Closes issue #12589)
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 6 May 2008 19:31:39 +0000 (19:31 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 6 May 2008 19:31:39 +0000 (19:31 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@115415 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/asterisk.c

index 1d3e11b79a65e59441366ad699d20d0f964204a7..37823e9891a97dc3a36303a78885cf14be3fd1bc 100644 (file)
@@ -2321,7 +2321,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));