com php-src: fix sprintf format: ext/standard/crypt_sha51 2.c
| From: | Anatol Belski | Date: | Thu, 18 Sep 2014 22:06:35 +0000 |
| Subject: | com php-src: fix sprintf format: ext/standard/crypt_sha51 2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81748@lists.php.net to get a copy of this message | ||
Commit: 732c49b433513860073c9b12658e807db97c051b
Author: Anatol Belski <ab@php.net> Thu, 18 Sep 2014 22:06:38 +0200
Parents: 2b77a57d884fab11dd54da0d78cb16a0496e76b4
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=732c49b433513860073c9b12658e807db97c051b
Log:
fix sprintf format
Changed paths:
M ext/standard/crypt_sha512.c
Diff:
diff --git a/ext/standard/crypt_sha512.c b/ext/standard/crypt_sha512.c
index a673bfa..0f696f5 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