summaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-04-25 00:16:10 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-05-01 22:55:29 +0200
commitf535f4f5fc6cbdce1aec5a3481cec37369dca468 (patch)
tree918a8b9043e6933a7ceacb4ac32b153b2f84c54c /lib/ftp.c
parent7c312f84ea930d89c0f0f774b50032c4f9ae30e4 (diff)
downloadcurl-f535f4f5fc6cbdce1aec5a3481cec37369dca468.tar.gz
buffer_size: make sure it always has the correct size
Removes the need for CURL_BUFSIZE
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index a0ea7cad1..cd2abdef6 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2824,7 +2824,7 @@ static CURLcode ftp_statemach_act(struct connectdata *conn)
case FTP_PWD:
if(ftpcode == 257) {
char *ptr=&data->state.buffer[4]; /* start on the first letter */
- const size_t buf_size = CURL_BUFSIZE(data->set.buffer_size);
+ const size_t buf_size = data->set.buffer_size;
char *dir;
char *store;