From bc0db8ce453aab34941cfe510833d218e50fcae4 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 28 Jun 2019 10:20:50 +0200 Subject: Use the portable zend_strndup() instead of strndup() --- sapi/phpdbg/phpdbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/phpdbg/phpdbg.c') diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 4a8ab1c5a4..eca24b4a4d 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -311,7 +311,7 @@ static PHP_FUNCTION(phpdbg_exec) result = 0; } - PHPDBG_G(exec) = strndup(ZSTR_VAL(exec), ZSTR_LEN(exec)); + PHPDBG_G(exec) = zend_strndup(ZSTR_VAL(exec), ZSTR_LEN(exec)); PHPDBG_G(exec_len) = ZSTR_LEN(exec); if (result) { -- cgit v1.2.1