aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/colorize.c b/colorize.c
index 661a550..0c0d10e 100644
--- a/colorize.c
+++ b/colorize.c
@@ -752,7 +752,7 @@ print_clean (const char *line)
char ***offsets = NULL;
unsigned int count = 0, i = 0;
- for (p = line; *p; p++)
+ for (p = line; *p;)
{
/* ESC[ */
if (*p == 27 && *(p + 1) == '[')
@@ -810,6 +810,7 @@ print_clean (const char *line)
DISCARD:
continue;
}
+ p++;
}
if (offsets)