From 1354671c903a74a59338a7826696b4d241ebb6e3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 6 May 2004 07:21:19 +0000 Subject: use %ld to printf now.tv_sec --- lib/http_digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; } -- cgit v1.2.3