aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh-libssh.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-02-01 00:24:19 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-02-01 07:50:59 +0100
commitddd31dc5dd960c4bd4dc995aec5178fddb24bfef (patch)
tree34f9466202037ebe09108216ce6488cd3ba2d0fb /lib/ssh-libssh.c
parent9409d0c26c7d46cde20beaec09ef0babb10f3794 (diff)
time_t-fixes: remove typecasts to 'long' for info.filetime
They're now wrong. Reported-by: Michael Kaufmann Closes #2277
Diffstat (limited to 'lib/ssh-libssh.c')
-rw-r--r--lib/ssh-libssh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh-libssh.c b/lib/ssh-libssh.c
index 56775d70d..d821c4a37 100644
--- a/lib/ssh-libssh.c
+++ b/lib/ssh-libssh.c
@@ -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);
}