summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-03-24 02:26:38 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-03-24 02:26:38 +0000
commitf96ec2a286b2f6894935f96d87679d41cc20f6f6 (patch)
tree002a23af520bba4ed5e1d818e62d01cc0b807300 /regcomp.c
parentcf6cacac241244490f8321a49c06199f86c6f325 (diff)
downloadperl-f96ec2a286b2f6894935f96d87679d41cc20f6f6.tar.gz
fix off-by-one that resulted in misparse of C</[\x{80}-\x{81}]/>
p4raw-id: //depot/perl@3136
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index a325b42f77..bacf2ca440 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -2498,7 +2498,7 @@ regclassutf8(void)
e = strchr(PL_regcomp_parse++, '}');
if (!e)
FAIL("Missing right brace on \\x{}");
- value = scan_hex(PL_regcomp_parse + 1, e - PL_regcomp_parse, &numlen);
+ value = scan_hex(PL_regcomp_parse, e - PL_regcomp_parse, &numlen);
PL_regcomp_parse = e + 1;
}
else {