aboutsummaryrefslogtreecommitdiffstats
path: root/main/term.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-24 21:17:26 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-24 21:17:26 +0000
commitfe7b0eae7b15ba31a5465b150f0c6cf5b49657d7 (patch)
treeedc9f76f97123c6237db4a6a04575935b6dc4018 /main/term.c
parent3d2c830509985738539bb7eea8d5005823a8e907 (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: http://svn.digium.com/svn/asterisk/trunk@248584 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/term.c')
-rw-r--r--main/term.c5
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) {