From: Christoph M. Becker Date: Fri, 28 Jun 2019 08:20:50 +0000 (+0200) Subject: Use the portable zend_strndup() instead of strndup() X-Git-Tag: php-7.4.0alpha3~146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc0db8ce453aab34941cfe510833d218e50fcae4;p=php Use the portable zend_strndup() instead of strndup() --- 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) {