dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@115416 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2008-05-06 19:32:29 +00:00
parent 5d1a0b6258
commit 53e6d21115
1 changed files with 1 additions and 1 deletions

View File

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