summaryrefslogtreecommitdiffstats
path: root/bin/ed/re.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ed/re.c')
-rw-r--r--bin/ed/re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ed/re.c b/bin/ed/re.c
index 08a330d..03a3436 100644
--- a/bin/ed/re.c
+++ b/bin/ed/re.c
@@ -89,7 +89,7 @@ extract_pattern(int delimiter)
default:
break;
case '[':
- if ((nd = parse_char_class(++nd)) == NULL) {
+ if ((nd = parse_char_class(nd + 1)) == NULL) {
errmsg = "unbalanced brackets ([])";
return NULL;
}
OpenPOWER on IntegriCloud