use %ld to printf now.tv_sec

This commit is contained in:
Daniel Stenberg 2004-05-06 07:21:19 +00:00
parent 1175a226e3
commit 1354671c90
1 changed files with 1 additions and 1 deletions

View File

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