diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-06-28 10:20:50 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-06-28 10:23:38 +0200 |
commit | bc0db8ce453aab34941cfe510833d218e50fcae4 (patch) | |
tree | aa61969ee6f457d3e0524b4679250f9cb14883bc /sapi/phpdbg/phpdbg.c | |
parent | ba8033feb0c2e8c6665a55d13ae2d0957ce72add (diff) | |
download | php-git-bc0db8ce453aab34941cfe510833d218e50fcae4.tar.gz |
Use the portable zend_strndup() instead of strndup()
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r-- | sapi/phpdbg/phpdbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |