aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2013-02-11 01:32:06 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2013-02-11 01:32:06 +0100
commit5ba883a106d17133c6f40f039bb696b7d6a9b053 (patch)
tree9ca129149f38408fd4bf42b1a47669e364d0af7b
parentc4db09c7cb72cf9588968bb120edaa7f6d2313c6 (diff)
downloadcolorize-5ba883a106d17133c6f40f039bb696b7d6a9b053.tar.gz
colorize-5ba883a106d17133c6f40f039bb696b7d6a9b053.tar.bz2
Advance position for end sequence
-rw-r--r--colorize.c3
1 files changed, 2 insertions, 1 deletions
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;