]> granicus.if.org Git - php/commitdiff
fix printf format
authorAnatol Belski <ab@php.net>
Fri, 19 Sep 2014 06:44:35 +0000 (08:44 +0200)
committerAnatol Belski <ab@php.net>
Fri, 19 Sep 2014 06:44:35 +0000 (08:44 +0200)
ext/standard/crypt_sha256.c

index 826b4d1593e9da9444bfe2154b59bad219292576..ee68cec0275c6fad512bf1eb96c2bf7b6ddbf292 100644 (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