com php-src: fix printf format: ext/standard/crypt_sha25 6.c
| From: | Anatol Belski | Date: | Fri, 19 Sep 2014 06:44:35 +0000 |
| Subject: | com php-src: fix printf format: ext/standard/crypt_sha25 6.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81766@lists.php.net to get a copy of this message | ||
Commit: 4d60f236302fdd792f6c60ae2837fe8b4e8e7050
Author: Anatol Belski <ab@php.net> Fri, 19 Sep 2014 08:44:35 +0200
Parents: 571537afe0460bdfdee82e0cbda03cda017e7db4
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4d60f236302fdd792f6c60ae2837fe8b4e8e7050
Log:
fix printf format
Changed paths:
M ext/standard/crypt_sha256.c
Diff:
diff --git a/ext/standard/crypt_sha256.c b/ext/standard/crypt_sha256.c
index 826b4d1..ee68cec 100644
--- a/ext/standard/crypt_sha256.c
+++ b/ext/standard/crypt_sha256.c
@@ -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