mirror of
https://github.com/curl/curl.git
synced 2026-08-24 21:43:32 +03:00
use %ld to printf now.tv_sec
This commit is contained in:
parent
1175a226e3
commit
1354671c90
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue