mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
%d -> %ld
This commit is contained in:
parent
51e0891f0b
commit
5d8567b83b
@ -472,7 +472,7 @@ try_again:
|
|||||||
unsigned char hash[16];
|
unsigned char hash[16];
|
||||||
|
|
||||||
PHP_MD5Init(&md5ctx);
|
PHP_MD5Init(&md5ctx);
|
||||||
snprintf(cnonce, sizeof(cnonce), "%d", php_rand(TSRMLS_C));
|
snprintf(cnonce, sizeof(cnonce), "%ld", php_rand(TSRMLS_C));
|
||||||
PHP_MD5Update(&md5ctx, (unsigned char*)cnonce, strlen(cnonce));
|
PHP_MD5Update(&md5ctx, (unsigned char*)cnonce, strlen(cnonce));
|
||||||
PHP_MD5Final(hash, &md5ctx);
|
PHP_MD5Final(hash, &md5ctx);
|
||||||
make_digest(cnonce, hash);
|
make_digest(cnonce, hash);
|
||||||
|
Loading…
Reference in New Issue
Block a user