diff options
author | Anatol Belski <ab@php.net> | 2014-09-20 15:46:19 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-09-20 15:46:19 +0200 |
commit | 763bfb4f3b0e66d5a961f9f367aa86e9f9da262e (patch) | |
tree | bce7eb3496fbe5126510b7fe9051ff0f1a899ce9 /ext/standard | |
parent | 1b3569235a47887fbaa4ac53f615dc43dbc1394d (diff) | |
download | php-git-763bfb4f3b0e66d5a961f9f367aa86e9f9da262e.tar.gz |
refixed printf fmt, used portable macros
Diffstat (limited to 'ext/standard')
-rw-r--r-- | ext/standard/crypt_sha256.c | 2 | ||||
-rw-r--r-- | ext/standard/crypt_sha512.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/crypt_sha256.c b/ext/standard/crypt_sha256.c index ee68cec027..5f28bd7b9f 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%I64u$", sha256_rounds_prefix, rounds); + int n = _snprintf(cp, MAX(0, buflen), "%s" ZEND_ULONG_FMT "$", sha256_rounds_prefix, rounds); #else int n = snprintf(cp, MAX(0, buflen), "%s%zu$", sha256_rounds_prefix, rounds); #endif diff --git a/ext/standard/crypt_sha512.c b/ext/standard/crypt_sha512.c index 9e5def38c5..df5f3d109e 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%I64u$", sha512_rounds_prefix, rounds); + int n = _snprintf(cp, MAX(0, buflen), "%s" ZEND_ULONG_FMT "$", sha512_rounds_prefix, rounds); #else int n = snprintf(cp, MAX(0, buflen), "%s%zu$", sha512_rounds_prefix, rounds); #endif |