From b7a760046545fa9afc3feca68d12dc087fbe625c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 20 Apr 2004 07:53:24 +0000 Subject: Cleaned up hostname/name/gname and path/ppath confusion. Removed the fixed- length limit of the hostname part of the URL. --- lib/ftp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/ftp.c') 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) { -- cgit v1.2.3