summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-02-19 20:52:48 -0700
committerKarl Williamson <public@khwilliamson.com>2011-02-19 21:44:48 -0700
commit07075d1946764ff3c2713c8e5a6c5d7e5a7514f2 (patch)
tree3a9d876d5816f1d17301bfa866a0cb386e00b91c
parent2259428871a6fb8a1e940f479ee57f0f1bb507d1 (diff)
downloadperl-07075d1946764ff3c2713c8e5a6c5d7e5a7514f2.tar.gz
regexp.h: The length of 'aa' is 2
-rw-r--r--regexp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/regexp.h b/regexp.h
index 66473dda19..92c9ccedfd 100644
--- a/regexp.h
+++ b/regexp.h
@@ -319,7 +319,8 @@ get_regex_charset_name(const U32 flags, STRLEN* const lenp)
case REGEX_UNICODE_CHARSET: return UNICODE_PAT_MODS;
case REGEX_ASCII_RESTRICTED_CHARSET: return ASCII_RESTRICT_PAT_MODS;
case REGEX_ASCII_MORE_RESTRICTED_CHARSET:
- return ASCII_MORE_RESTRICT_PAT_MODS;
+ *lenp = 2;
+ return ASCII_MORE_RESTRICT_PAT_MODS;
}
return "?"; /* Unknown */