summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c
index 33021eaab8..8044d18e90 100644
--- a/ext/mbstring/php_mbregex.c
+++ b/ext/mbstring/php_mbregex.c
@@ -225,7 +225,7 @@ PHP_FUNCTION(mb_regex_encoding)
if (ZEND_NUM_ARGS() == 0) {
const char *retval = php_mbregex_mbctype2name(MBSTRG(current_mbctype));
if ( retval != NULL ) {
- RETVAL_STRING((char *)retval);
+ RETVAL_STRING((char *)retval, 1);
} else {
RETVAL_FALSE;
}