summaryrefslogtreecommitdiff
path: root/lib/http_digest.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-06 07:21:19 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-06 07:21:19 +0000
commit1354671c903a74a59338a7826696b4d241ebb6e3 (patch)
tree14d27f0eada7876966d03f0006aed8d52fbee88e /lib/http_digest.c
parent1175a226e3c131224c407073c47910a0b87b403c (diff)
downloadcurl-1354671c903a74a59338a7826696b4d241ebb6e3.tar.gz
use %ld to printf now.tv_sec
Diffstat (limited to 'lib/http_digest.c')
-rw-r--r--lib/http_digest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http_digest.c b/lib/http_digest.c
index 35ba17180..b619bd1be 100644
--- a/lib/http_digest.c
+++ b/lib/http_digest.c
@@ -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;
}