diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-02-24 21:17:26 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-02-24 21:17:26 +0000 |
commit | 4e1e6820dbf1744df641cd88293c502584b5d4df (patch) | |
tree | edc9f76f97123c6237db4a6a04575935b6dc4018 /main/term.c | |
parent | e3d176d0d36ef915bf2286c2d01202c906a7aa1a (diff) |
Merged revisions 248582 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r248582 | tilghman | 2010-02-24 15:02:18 -0600 (Wed, 24 Feb 2010) | 7 lines
Remove color code sequences from verbose messages that go to logfiles.
(closes issue #16786)
Reported by: dodo
Patches:
logger2.patch uploaded by dodo (license 989)
Tested by: tilghman
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@248584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/term.c')
-rw-r--r-- | main/term.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/term.c b/main/term.c index 142b38847..5140e6323 100644 --- a/main/term.c +++ b/main/term.c @@ -268,9 +268,10 @@ char *term_color_code(char *outbuf, int fgcolor, int bgcolor, int maxout) return outbuf; } -char *term_strip(char *outbuf, char *inbuf, int maxout) +char *term_strip(char *outbuf, const char *inbuf, int maxout) { - char *outbuf_ptr = outbuf, *inbuf_ptr = inbuf; + char *outbuf_ptr = outbuf; + const char *inbuf_ptr = inbuf; while (outbuf_ptr < outbuf + maxout) { switch (*inbuf_ptr) { |