diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-04-25 14:38:34 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-05-01 22:55:29 +0200 |
commit | e40e9d7f0decc799e3ccfe2c418632f8bb52031a (patch) | |
tree | 9099a157e632bd258e64af5373fac96298bce77e /lib/smtp.c | |
parent | c79f4908d461cecaa9976099dcbb8a63b351f19e (diff) | |
download | curl-e40e9d7f0decc799e3ccfe2c418632f8bb52031a.tar.gz |
buffer: use data->set.buffer_size instead of BUFSIZE
... to properly use the dynamically set buffer size!
Diffstat (limited to 'lib/smtp.c')
-rw-r--r-- | lib/smtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index adc346a69..fe064cb2f 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -1591,7 +1591,7 @@ CURLcode Curl_smtp_escape_eob(struct connectdata *conn, const ssize_t nread) if(!scratch || data->set.crlf) { oldscratch = scratch; - scratch = newscratch = malloc(2 * BUFSIZE); + scratch = newscratch = malloc(2 * data->set.buffer_size); if(!newscratch) { failf(data, "Failed to alloc scratch buffer!"); |