From: Steven Schubiger Date: Mon, 11 Feb 2013 00:32:06 +0000 (+0100) Subject: Advance position for end sequence X-Git-Tag: v0.49~4 X-Git-Url: http://git.refcnt.org/?p=colorize.git;a=commitdiff_plain;h=5ba883a106d17133c6f40f039bb696b7d6a9b053 Advance position for end sequence --- diff --git a/colorize.c b/colorize.c index 67c24dd..c840080 100644 --- a/colorize.c +++ b/colorize.c @@ -802,7 +802,7 @@ print_clean (const char *line) } while (check_values); END: if (*p == 'm') { - const char *end = p; + const char *end = p++; if (!offsets) offsets = xmalloc (++count * sizeof (char **)); else @@ -811,6 +811,7 @@ print_clean (const char *line) offsets[i][0] = (char *)begin; /* ESC */ offsets[i][1] = (char *)end; /* m */ i++; + continue; } DISCARD: continue;