diff options
Diffstat (limited to 'lib/http_digest.c')
-rw-r--r-- | lib/http_digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http_digest.c b/lib/http_digest.c index 92d44ada7..ddeb93747 100644 --- a/lib/http_digest.c +++ b/lib/http_digest.c @@ -293,7 +293,7 @@ CURLcode Curl_output_digest(struct connectdata *conn, if(!d->cnonce) { /* Generate a cnonce */ now = Curl_tvnow(); - snprintf(cnoncebuf, sizeof(cnoncebuf), "%06ld", now.tv_sec); + snprintf(cnoncebuf, sizeof(cnoncebuf), "%06ld", (long)now.tv_sec); if(Curl_base64_encode(data, cnoncebuf, strlen(cnoncebuf), &cnonce)) d->cnonce = cnonce; else |