]> granicus.if.org Git - php/commitdiff
Fixed warnings
authorXinchen Hui <laruence@php.net>
Wed, 15 Apr 2015 02:37:35 +0000 (10:37 +0800)
committerXinchen Hui <laruence@php.net>
Wed, 15 Apr 2015 02:37:35 +0000 (10:37 +0800)
ext/phar/phar.c

index 711cf9bf208e62785ea51e99528fc586852e5e72..e7d74296101f1ad1b4b7e5d81405e9576217d147 100644 (file)
@@ -606,7 +606,8 @@ int phar_parse_metadata(char **buffer, zval **metadata, php_uint32 zip_metadata_
        php_unserialize_data_t var_hash;
 
        if (zip_metadata_len) {
-               const unsigned char *p, *p_buff = estrndup(*buffer, zip_metadata_len);
+               const unsigned char *p;
+               unsigned char *p_buff = (unsigned char *)estrndup(*buffer, zip_metadata_len);
                p = p_buff;
                ALLOC_ZVAL(*metadata);
                INIT_ZVAL(**metadata);