mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
use %ld to printf now.tv_sec
This commit is contained in:
parent
1175a226e3
commit
1354671c90
@ -239,7 +239,7 @@ CURLcode Curl_output_digest(struct connectdata *conn,
|
||||
if(!d->cnonce) {
|
||||
/* Generate a cnonce */
|
||||
now = Curl_tvnow();
|
||||
snprintf(cnoncebuf, sizeof(cnoncebuf), "%06d", now.tv_sec);
|
||||
snprintf(cnoncebuf, sizeof(cnoncebuf), "%06ld", now.tv_sec);
|
||||
Curl_base64_encode(cnoncebuf, strlen(cnoncebuf), &cnonce);
|
||||
d->cnonce = cnonce;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user