]> git.refcnt.org Git - colorize.git/commitdiff
Advance position for end sequence
authorSteven Schubiger <stsc@refcnt.org>
Mon, 11 Feb 2013 00:32:06 +0000 (01:32 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Mon, 11 Feb 2013 00:32:06 +0000 (01:32 +0100)
colorize.c

index 67c24dd7961517d8f9c337dba01623984edc01d1..c84008091e352b3842136a765e3e1cd4da80e88f 100644 (file)
@@ -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;