]> granicus.if.org Git - php/commitdiff
Fix incorrect printf modifier after size_t changes
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 4 Oct 2018 08:58:20 +0000 (10:58 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 4 Oct 2018 10:13:46 +0000 (12:13 +0200)
ext/hash/hash.c

index 0ac643160ac1c8bb7be7b1ed52f58fc7f528c932..13b068a90c606f4752b8aa79411dbb8c60f6ae05 100644 (file)
@@ -651,7 +651,7 @@ PHP_FUNCTION(hash_hkdf)
        } else if (length == 0) {
                length = ops->digest_size;
        } else if (length > (zend_long) (ops->digest_size * 255)) {
-               php_error_docref(NULL, E_WARNING, "Length must be less than or equal to %d: " ZEND_LONG_FMT, ops->digest_size * 255, length);
+               php_error_docref(NULL, E_WARNING, "Length must be less than or equal to %zd: " ZEND_LONG_FMT, ops->digest_size * 255, length);
                RETURN_FALSE;
        }