You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
diff --git a/src/ftp.c b/src/ftp.c |
|
index ea7621e0..ab6802a6 100644 |
|
--- a/src/ftp.c |
|
+++ b/src/ftp.c |
|
@@ -992,9 +992,6 @@ Error in server response, closing control connection.\n")); |
|
|
|
/* 2004-09-20 SMS. */ |
|
|
|
- if (target != targetbuf) |
|
- xfree (target); |
|
- |
|
} /* else */ |
|
} |
|
else /* do not CWD */ |
|
diff --git a/src/ftp.c b/src/ftp.c |
|
index a1fcaa50..e821b0f3 100644 |
|
--- a/src/ftp.c |
|
+++ b/src/ftp.c |
|
@@ -2083,7 +2083,7 @@ ftp_loop_internal (struct url *u, struct url *original_url, struct fileinfo *f, |
|
/* --dont-remove-listing was specified, so do count this towards the |
|
number of bytes and files downloaded. */ |
|
{ |
|
- total_downloaded_bytes += qtyread; |
|
+ total_downloaded_bytes += (qtyread - restval); |
|
numurls++; |
|
} |
|
|
|
@@ -2098,7 +2098,7 @@ ftp_loop_internal (struct url *u, struct url *original_url, struct fileinfo *f, |
|
downloaded if they're going to be deleted. People seeding proxies, |
|
for instance, may want to know how many bytes and files they've |
|
downloaded through it. */ |
|
- total_downloaded_bytes += qtyread; |
|
+ total_downloaded_bytes += (qtyread - restval); |
|
numurls++; |
|
|
|
if (opt.delete_after && !input_file_url (opt.input_filename))
|
|
|