aboutsummaryrefslogtreecommitdiffstats
path: root/logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'logger.c')
-rwxr-xr-xlogger.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/logger.c b/logger.c
index 96650c8f2..ca0e34a52 100755
--- a/logger.c
+++ b/logger.c
@@ -606,16 +606,15 @@ void close_logger(void)
static void strip_coloring(char *str)
{
- char *src = str, *dest, *end;
+ char *src, *dest, *end;
if (!src)
return;
/* find the first potential escape sequence in the string */
- while (*src && (*src != '\033'))
- src++;
- if (!*src)
+ src = strchr(str, '\033');
+ if (!src)
return;
dest = src;