%d -> %ld

This commit is contained in:
Antony Dovgal 2007-05-10 21:52:10 +00:00
parent 51e0891f0b
commit 5d8567b83b

View File

@ -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);