Don't print the terminating NUL. (Closes issue #12589)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@115415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Tilghman Lesher 18 years ago
parent 9c2bac0487
commit 273afe2080

@ -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));

Loading…
Cancel
Save