From ddd31dc5dd960c4bd4dc995aec5178fddb24bfef Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 1 Feb 2018 00:24:19 +0100 Subject: time_t-fixes: remove typecasts to 'long' for info.filetime They're now wrong. Reported-by: Michael Kaufmann Closes #2277 --- lib/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/http.c') diff --git a/lib/http.c b/lib/http.c index a5007670d..ac8f8ea92 100644 --- a/lib/http.c +++ b/lib/http.c @@ -3692,7 +3692,7 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy *data, k->timeofdoc = curl_getdate(k->p + strlen("Last-Modified:"), &secs); if(data->set.get_filetime) - data->info.filetime = (long)k->timeofdoc; + data->info.filetime = k->timeofdoc; } else if((checkprefix("WWW-Authenticate:", k->p) && (401 == k->httpcode)) || -- cgit v1.2.3