aboutsummaryrefslogtreecommitdiff
path: root/src/scp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scp.c')
-rw-r--r--src/scp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scp.c b/src/scp.c
index db07aed4..a245402a 100644
--- a/src/scp.c
+++ b/src/scp.c
@@ -545,7 +545,7 @@ int ssh_scp_read_string(ssh_scp scp, char *buffer, size_t len){
* @see ssh_scp_request_get_warning()
*/
int ssh_scp_pull_request(ssh_scp scp){
- char buffer[4096] = {0};
+ char buffer[MAX_BUF_SIZE] = {0};
char *mode=NULL;
char *p,*tmp;
uint64_t size;
@@ -642,7 +642,7 @@ int ssh_scp_pull_request(ssh_scp scp){
* the message failed, or sending it in a bad state.
*/
int ssh_scp_deny_request(ssh_scp scp, const char *reason){
- char buffer[4096];
+ char buffer[MAX_BUF_SIZE];
int err;
if(scp==NULL)
return SSH_ERROR;