From 732c49b433513860073c9b12658e807db97c051b Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 18 Sep 2014 22:06:38 +0200 Subject: [PATCH] fix sprintf format --- ext/standard/crypt_sha512.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/crypt_sha512.c b/ext/standard/crypt_sha512.c index a673bfac1c..0f696f5cd3 100644 --- a/ext/standard/crypt_sha512.c +++ b/ext/standard/crypt_sha512.c @@ -555,7 +555,7 @@ php_sha512_crypt_r(const char *key, const char *salt, char *buffer, int buflen) if (rounds_custom) { #ifdef PHP_WIN32 - int n = _snprintf(cp, MAX(0, buflen), "%s%u$", sha512_rounds_prefix, rounds); + int n = _snprintf(cp, MAX(0, buflen), "%s%I64u$", sha512_rounds_prefix, rounds); #else int n = snprintf(cp, MAX(0, buflen), "%s%zu$", sha512_rounds_prefix, rounds); #endif -- 2.50.1