aboutsummaryrefslogtreecommitdiff
path: root/networking/ftpgetput.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-03-06 22:11:45 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-03-06 22:11:45 +0000
commit1aa213a1aeddf67b4ad6c5ac4cb251c861ffeafb (patch)
treee4891420283c085d688683a41cc217dc896917b8 /networking/ftpgetput.c
parent0ba8ef4bbcca5700238b52efbafbaf72d8e3fd96 (diff)
downloadbusybox-w32-1aa213a1aeddf67b4ad6c5ac4cb251c861ffeafb.tar.gz
busybox-w32-1aa213a1aeddf67b4ad6c5ac4cb251c861ffeafb.tar.bz2
busybox-w32-1aa213a1aeddf67b4ad6c5ac4cb251c861ffeafb.zip
Fix/eliminate use of atol
git-svn-id: svn://busybox.net/trunk/busybox@8598 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r--networking/ftpgetput.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c
index 4f6be1196..17ee8a536 100644
--- a/networking/ftpgetput.c
+++ b/networking/ftpgetput.c
@@ -147,7 +147,10 @@ static int ftp_recieve(ftp_host_info_t *server, FILE *control_stream,
147 fd_data = xconnect_ftpdata(server, buf); 147 fd_data = xconnect_ftpdata(server, buf);
148 148
149 if (ftpcmd("SIZE ", server_path, control_stream, buf) == 213) { 149 if (ftpcmd("SIZE ", server_path, control_stream, buf) == 213) {
150 filesize = atol(buf + 4); 150 unsigned long value=filesize;
151 if (safe_strtoul(buf + 4, &filesize))
152 bb_error_msg_and_die("SIZE error: %s", buf + 4);
153 filesize = value;
151 } 154 }
152 155
153 if ((local_path[0] == '-') && (local_path[1] == '\0')) { 156 if ((local_path[0] == '-') && (local_path[1] == '\0')) {