diff options
author | Ryo Nakamura <upa@haeena.net> | 2022-10-22 19:07:44 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2022-10-22 19:07:44 +0900 |
commit | 54dc6c85a3bd02def57e09b70089b435189fef25 (patch) | |
tree | b30972325cc9cf7e852635d8532ab94a6efcbfda /src | |
parent | e5d1f6ec7ddb6be1e42afb33dd01beffbe2fd277 (diff) |
fix on copy handling
Diffstat (limited to 'src')
-rw-r--r-- | src/file.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -613,7 +613,8 @@ static int chunk_copy_local_to_remote(struct chunk *c, sftp_session sftp, size_t ret = -1; goto out; } - remaind2 -= ret; + remaind2 -= ret2; + c->done += ret2; } remaind -= ret; @@ -672,7 +673,8 @@ static int chunk_copy_remote_to_local(struct chunk *c, sftp_session sftp, size_t ret = -1; goto out; } - remaind2 -= ret; + remaind2 -= ret2; + c->done += ret2; } remaind -= ret; |