summaryrefslogtreecommitdiff
path: root/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regex.c b/regex.c
index 583dd20a65..3f38757656 100644
--- a/regex.c
+++ b/regex.c
@@ -2257,7 +2257,7 @@ re_compile_pattern(pattern, size, bufp)
/* octal */
case '0':
had_mbchar = 0;
- c = scan_oct(p, 3, &numlen);
+ c = scan_oct(p, 2, &numlen);
p += numlen;
had_num_literal = 1;
goto numeric_char;