summaryrefslogtreecommitdiff
path: root/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regex.c b/regex.c
index b92978fdbb..f8c2c20c6d 100644
--- a/regex.c
+++ b/regex.c
@@ -1203,7 +1203,8 @@ read_special(p, pend, pp)
else if (c == -1) return ~0;
return c & 0x9f;
default:
- *pp = p + 1;
+ PATFETCH_RAW(c);
+ *pp = p;
return read_backslash(c);
}