From: Daniel Stenberg Date: Thu, 6 May 2004 07:21:19 +0000 (+0000) Subject: use %ld to printf now.tv_sec X-Git-Tag: curl-7_12_0~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1354671c903a74a59338a7826696b4d241ebb6e3;p=thirdparty%2Fcurl.git use %ld to printf now.tv_sec --- diff --git a/lib/http_digest.c b/lib/http_digest.c index 35ba17180f..b619bd1be7 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; }