Skip to content

Commit b1d2a89

Browse files
committed
Fix length to copy
1 parent f6ee308 commit b1d2a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3001,7 +3001,7 @@ static zend_always_inline int zend_is_callable_check_func(int check_flags, zval
30013001
if (UNEXPECTED(Z_STRVAL_P(callable)[0] == '\\')) {
30023002
/* Skip leading \ */
30033003
ZSTR_ALLOCA_ALLOC(lmname, Z_STRLEN_P(callable) - 1, use_heap);
3004-
zend_str_tolower_copy(ZSTR_VAL(lmname), Z_STRVAL_P(callable) + 1, Z_STRLEN_P(callable));
3004+
zend_str_tolower_copy(ZSTR_VAL(lmname), Z_STRVAL_P(callable) + 1, Z_STRLEN_P(callable) - 1);
30053005
func = zend_fetch_function(lmname);
30063006
ZSTR_ALLOCA_FREE(lmname, use_heap);
30073007
} else {

0 commit comments

Comments
 (0)