mirror of
https://github.com/curl/curl.git
synced 2026-08-01 01:58:02 +03:00
Reverted the 'filetime' struct field back to a 'long' as time_t is sometimes
unsigned and we want this to be able to hold -1 for illegal/unset values.
This commit is contained in:
parent
5f8989a436
commit
1c35cbcc07
2 changed files with 6 additions and 4 deletions
|
|
@ -2059,9 +2059,9 @@ CURLcode ftp_perform(struct connectdata *conn,
|
|||
struct tm *tm;
|
||||
#ifdef HAVE_LOCALTIME_R
|
||||
struct tm buffer;
|
||||
tm = (struct tm *)localtime_r(&data->info.filetime, &buffer);
|
||||
tm = (struct tm *)localtime_r((time_t *)&data->info.filetime, &buffer);
|
||||
#else
|
||||
tm = localtime(&data->info.filetime);
|
||||
tm = localtime((time_t *)&data->info.filetime);
|
||||
#endif
|
||||
/* format: "Tue, 15 Nov 1994 12:45:26 GMT" */
|
||||
strftime(buf, BUFSIZE-1, "Last-Modified: %a, %d %b %Y %H:%M:%S GMT\r\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue