aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-20 07:53:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-20 07:53:24 +0000
commitb7a760046545fa9afc3feca68d12dc087fbe625c (patch)
tree292e468bc07f8c59917ab2f078343ac6bed5b354 /lib/ftp.c
parent111a2f3057b3a13cb91e3c5a702bd1254f774dbb (diff)
Cleaned up hostname/name/gname and path/ppath confusion. Removed the fixed-
length limit of the hostname part of the URL.
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index cce1d9e9e..088cfaa5e 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1611,7 +1611,7 @@ CURLcode ftp_use_pasv(struct connectdata *conn,
newport = num;
/* we should use the same host we already are connected to */
- newhostp = conn->name;
+ newhostp = conn->hostname;
}
}
else
@@ -2320,8 +2320,8 @@ CURLcode Curl_ftp(struct connectdata *conn)
struct FTP *ftp;
char *slash_pos; /* position of the first '/' char in curpos */
- char *cur_pos=conn->ppath; /* current position in ppath. point at the begin
- of next path component */
+ char *cur_pos=conn->path; /* current position in ppath. point at the begin
+ of next path component */
/* the ftp struct is already inited in ftp_connect() */
ftp = conn->proto.ftp;
@@ -2343,7 +2343,7 @@ CURLcode Curl_ftp(struct connectdata *conn)
/* parse the URL path into separate path components */
while((slash_pos=strchr(cur_pos, '/'))) {
/* 1 or 0 to indicate absolute directory */
- bool absolute_dir = (cur_pos - conn->ppath > 0) && (ftp->dirdepth == 0);
+ bool absolute_dir = (cur_pos - conn->path > 0) && (ftp->dirdepth == 0);
/* seek out the next path component */
if (slash_pos-cur_pos) {