1
0
mirror of https://github.com/php/php-src.git synced 2026-04-04 06:32:49 +02:00

fix printf format

This commit is contained in:
Anatol Belski
2014-09-19 08:44:35 +02:00
parent 571537afe0
commit 4d60f23630

View File

@@ -520,7 +520,7 @@ char * php_sha256_crypt_r(const char *key, const char *salt, char *buffer, int b
if (rounds_custom) {
#ifdef PHP_WIN32
int n = _snprintf(cp, MAX(0, buflen), "%s%u$", sha256_rounds_prefix, rounds);
int n = _snprintf(cp, MAX(0, buflen), "%s%I64u$", sha256_rounds_prefix, rounds);
#else
int n = snprintf(cp, MAX(0, buflen), "%s%zu$", sha256_rounds_prefix, rounds);
#endif