mirror of
https://github.com/curl/curl.git
synced 2026-08-25 17:33:32 +03:00
buffer: use data->set.buffer_size instead of BUFSIZE
... to properly use the dynamically set buffer size!
This commit is contained in:
parent
c79f4908d4
commit
e40e9d7f0d
8 changed files with 26 additions and 27 deletions
|
|
@ -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!");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue