]> granicus.if.org Git - php/commitdiff
- no trailing NULs
authorMichael Wallner <mike@php.net>
Wed, 23 Nov 2005 16:36:11 +0000 (16:36 +0000)
committerMichael Wallner <mike@php.net>
Wed, 23 Nov 2005 16:36:11 +0000 (16:36 +0000)
ext/hash/hash.c

index e318a52460f799301718428b9b3dc91798e8ebd2..4d14992edc58a4747a1d3176e301e6de1b9c92df 100644 (file)
@@ -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);
        }
 }
 /* }}} */