[svn-commits] russell: tag 1.4.20.1 r117528 - /tags/1.4.20.1/main/asterisk.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed May 21 13:52:07 CDT 2008


Author: russell
Date: Wed May 21 13:52:07 2008
New Revision: 117528

URL: http://svn.digium.com/view/asterisk?view=rev&rev=117528
Log:
merge main/asterisk.c portion of 117519

Modified:
    tags/1.4.20.1/main/asterisk.c

Modified: tags/1.4.20.1/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/tags/1.4.20.1/main/asterisk.c?view=diff&rev=117528&r1=117527&r2=117528
==============================================================================
--- tags/1.4.20.1/main/asterisk.c (original)
+++ tags/1.4.20.1/main/asterisk.c Wed May 21 13:52:07 2008
@@ -2347,6 +2347,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