]> granicus.if.org Git - php/commitdiff
fix sprintf format
authorAnatol Belski <ab@php.net>
Thu, 18 Sep 2014 20:06:38 +0000 (22:06 +0200)
committerAnatol Belski <ab@php.net>
Thu, 18 Sep 2014 22:06:35 +0000 (00:06 +0200)
ext/standard/crypt_sha512.c

index a673bfac1ca0003dcd93ff18cbb263ddcc6748ab..0f696f5cd352119ad920b1ce4bf169ef052b91f1 100644 (file)
@@ -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