From d11d157c9f6bd69a04438aa2e597cce6e5fa43c7 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 23 Nov 2005 16:36:11 +0000 Subject: [PATCH] - no trailing NULs --- ext/hash/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/hash/hash.c b/ext/hash/hash.c index e318a52460..4d14992edc 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -364,7 +364,7 @@ PHP_FUNCTION(hash_algos) for(zend_hash_internal_pointer_reset_ex(&php_hash_hashtable, &pos); (type = zend_hash_get_current_key_ex(&php_hash_hashtable, &str, &str_len, &idx, 0, &pos)) != HASH_KEY_NON_EXISTANT; zend_hash_move_forward_ex(&php_hash_hashtable, &pos)) { - add_next_index_stringl(return_value, str, str_len, 1); + add_next_index_stringl(return_value, str, str_len-1, 1); } } /* }}} */ -- 2.40.0