From 89cf6f38d2f525cbc8537a60061f5f37bb2f35f7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 25 Apr 2017 14:37:06 +0200 Subject: upload: UPLOAD_BUFSIZE is now for the upload buffer --- lib/smb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/smb.c') diff --git a/lib/smb.c b/lib/smb.c index 51b3434cb..5b1ffa9b7 100644 --- a/lib/smb.c +++ b/lib/smb.c @@ -607,7 +607,7 @@ static CURLcode smb_send_and_recv(struct connectdata *conn, void **msg) /* Check if there is data in the transfer buffer */ if(!smbc->send_size && smbc->upload_size) { - int nread = smbc->upload_size > BUFSIZE ? BUFSIZE : + int nread = smbc->upload_size > UPLOAD_BUFSIZE ? UPLOAD_BUFSIZE : (int) smbc->upload_size; conn->data->req.upload_fromhere = conn->data->state.uploadbuffer; result = Curl_fillreadbuffer(conn, nread, &nread); -- cgit v1.2.3