diff options
| author | Joseph Southwell <joseph@southwell.org> | 2014-02-02 19:28:51 +0100 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2014-02-02 22:19:46 +0100 |
| commit | 6bbdaceaca06e3af4df5d4f265630ea651bc9044 (patch) | |
| tree | 793e11158b92870703729d774ba3b469c22369d3 /src/scp.c | |
| parent | eedecd02694cfba2796c79496e1d6c9ebc7ea97a (diff) | |
| download | libssh-6bbdaceaca06e3af4df5d4f265630ea651bc9044.tar.gz libssh-6bbdaceaca06e3af4df5d4f265630ea651bc9044.tar.xz libssh-6bbdaceaca06e3af4df5d4f265630ea651bc9044.zip | |
src: Define MAX_BUF_SIZE globally and use it.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/scp.c')
| -rw-r--r-- | src/scp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
