[svn-commits] tilghman: trunk r117520 - in /trunk: ./ main/asterisk.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed May 21 13:43:27 CDT 2008
Author: tilghman
Date: Wed May 21 13:43:26 2008
New Revision: 117520
URL: http://svn.digium.com/view/asterisk?view=rev&rev=117520
Log:
Merged revisions 117519 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r117519 | tilghman | 2008-05-21 13:40:14 -0500 (Wed, 21 May 2008) | 3 lines
Strip the preamble from the output also when -rx is not being used
(Related to issue #12702)
........
Modified:
trunk/ (props changed)
trunk/main/asterisk.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/trunk/main/asterisk.c?view=diff&rev=117520&r1=117519&r2=117520
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Wed May 21 13:43:26 2008
@@ -2480,6 +2480,14 @@
if (ebuf[strlen(ebuf)-1] == '\n')
ebuf[strlen(ebuf)-1] = '\0';
if (!remoteconsolehandler(ebuf)) {
+ /* Strip preamble from output */
+ char *tmp;
+ for (tmp = ebuf; *tmp; tmp++) {
+ if (*tmp == 127) {
+ memmove(tmp, tmp + 1, strlen(tmp));
+ tmp--;
+ }
+ }
res = write(ast_consock, ebuf, strlen(ebuf) + 1);
if (res < 1) {
ast_log(LOG_WARNING, "Unable to write: %s\n", strerror(errno));
More information about the svn-commits
mailing list