aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-15 07:52:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-15 07:52:39 +0000
commit4f84e6d9e249297fa659818d5e28934fc98c5936 (patch)
treeff699de834b02fe704b543d3c2c12aaaf9e64ca6 /lib/urldata.h
parent6f08903f07cc35240bcdcf81113e47bd6ced2724 (diff)
removed the fixed dir depth limit in the FTP code
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index f138fc48c..1da835126 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -107,9 +107,6 @@
of need. */
#define HEADERSIZE 256
-/* Maximum number of dirs supported by libcurl in a FTP dir hierarchy */
-#define CURL_MAX_FTP_DIRDEPTH 100
-
/* Just a convenience macro to get the larger value out of two given.
We prefix with CURL to prevent name collisions. */
#define CURLMAX(x,y) ((x)>(y)?(x):(y))
@@ -244,7 +241,9 @@ struct FTP {
char *user; /* user name string */
char *passwd; /* password string */
char *urlpath; /* the originally given path part of the URL */
- char *dirs[CURL_MAX_FTP_DIRDEPTH]; /* path components */
+ char **dirs; /* realloc()ed array for path components */
+ int dirdepth; /* number of entries used in the 'dirs' array */
+ int diralloc; /* number of entries allocated for the 'dirs' array */
char *file; /* decoded file */
char *entrypath; /* the PWD reply when we logged on */