summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
Diffstat (limited to 'regexp.h')
-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 */