aboutsummaryrefslogtreecommitdiff
path: root/bpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'bpeg.c')
-rw-r--r--bpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bpeg.c b/bpeg.c
index 8594f13..85d372c 100644
--- a/bpeg.c
+++ b/bpeg.c
@@ -744,6 +744,7 @@ static void print_match(match_t *m, const char *color)
fputc('@', stdout);
--r;
} else {
+ ++r;
char *name = strndup(r, (size_t)(closing-r));
cap = get_capture_named(m, name);
free(name);