[asterisk-commits] tilghman: branch 1.4 r115415 - /branches/1.4/main/asterisk.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue May 6 14:31:39 CDT 2008
Author: tilghman
Date: Tue May 6 14:31:39 2008
New Revision: 115415
URL: http://svn.digium.com/view/asterisk?view=rev&rev=115415
Log:
Don't print the terminating NUL. (Closes issue #12589)
Modified:
branches/1.4/main/asterisk.c
Modified: branches/1.4/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/asterisk.c?view=diff&rev=115415&r1=115414&r2=115415
==============================================================================
--- branches/1.4/main/asterisk.c (original)
+++ branches/1.4/main/asterisk.c Tue May 6 14:31:39 2008
@@ -2321,7 +2321,7 @@
/* 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));
More information about the asterisk-commits
mailing list