aboutsummaryrefslogtreecommitdiff
path: root/networking/ftpgetput.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r--networking/ftpgetput.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c
index 56223dccb..2fd50e4c4 100644
--- a/networking/ftpgetput.c
+++ b/networking/ftpgetput.c
@@ -210,7 +210,7 @@ static int ftp_recieve(ftp_host_info_t *server, FILE *control_stream,
210 } 210 }
211 211
212 /* Copy the file */ 212 /* Copy the file */
213 if (bb_copyfd(fd_data, fd_local, filesize) == -1) { 213 if (bb_copyfd_size(fd_data, fd_local, filesize) == -1) {
214 exit(EXIT_FAILURE); 214 exit(EXIT_FAILURE);
215 } 215 }
216 216
@@ -272,7 +272,7 @@ static int ftp_send(ftp_host_info_t *server, FILE *control_stream,
272 } 272 }
273 273
274 /* transfer the file */ 274 /* transfer the file */
275 if (bb_copyfd(fd_local, fd_data, 0) == -1) { 275 if (bb_copyfd_eof(fd_local, fd_data) == -1) {
276 exit(EXIT_FAILURE); 276 exit(EXIT_FAILURE);
277 } 277 }
278 278