Skip to content
Snippets Groups Projects
Commit 1354671c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

use %ld to printf now.tv_sec

parent 1175a226
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment