mirror of
https://github.com/curl/curl.git
synced 2026-04-27 12:42:11 +03:00
time_t-fixes: remove typecasts to 'long' for info.filetime
They're now wrong. Reported-by: Michael Kaufmann Closes #2277
This commit is contained in:
parent
9409d0c26c
commit
ddd31dc5dd
5 changed files with 11 additions and 11 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 2017 Red Hat, Inc.
|
||||
* Copyright (C) 2017 - 2018 Red Hat, Inc.
|
||||
*
|
||||
* Authors: Nikos Mavrogiannopoulos, Tomas Mraz, Stanislav Zidek,
|
||||
* Robert Kolcun, Andreas Schneider
|
||||
|
|
@ -1046,7 +1046,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block)
|
|||
|
||||
attrs = sftp_stat(sshc->sftp_session, protop->path);
|
||||
if(attrs != 0) {
|
||||
data->info.filetime = (long)attrs->mtime;
|
||||
data->info.filetime = attrs->mtime;
|
||||
sftp_attributes_free(attrs);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue