[asterisk-commits] russell: trunk r97646 - in /trunk: ./ pbx/pbx_gtkconsole.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 9 17:02:19 CST 2008
Author: russell
Date: Wed Jan 9 17:02:19 2008
New Revision: 97646
URL: http://svn.digium.com/view/asterisk?view=rev&rev=97646
Log:
Merged revisions 97645 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r97645 | russell | 2008-01-09 17:01:48 -0600 (Wed, 09 Jan 2008) | 2 lines
Strip terminal sequences from the verbose messages
........
Modified:
trunk/ (props changed)
trunk/pbx/pbx_gtkconsole.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/pbx/pbx_gtkconsole.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/pbx_gtkconsole.c?view=diff&rev=97646&r1=97645&r2=97646
==============================================================================
--- trunk/pbx/pbx_gtkconsole.c (original)
+++ trunk/pbx/pbx_gtkconsole.c Wed Jan 9 17:02:19 2008
@@ -45,6 +45,7 @@
#include "asterisk/cli.h"
#include "asterisk/utils.h"
#include "asterisk/paths.h"
+#include "asterisk/term.h"
AST_MUTEX_DEFINE_STATIC(verb_lock);
@@ -96,11 +97,16 @@
}
-static void __verboser(const char *stuff)
+static void __verboser(const char *_stuff)
{
char *s2[2];
struct timeval tv;
int ms;
+ char *stuff;
+
+ stuff = ast_strdupa(_stuff);
+ term_strip(stuff, stuff, strlen(stuff) + 1);
+
s2[0] = (char *)stuff;
s2[1] = NULL;
gtk_clist_freeze(GTK_CLIST(verb));
More information about the asterisk-commits
mailing list