1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-27 13:21:11 +03:00

src: Define MAX_BUF_SIZE globally and use it.

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Joseph Southwell
2014-02-02 19:28:51 +01:00
committed by Andreas Schneider
parent eedecd0269
commit 6bbdaceaca
5 changed files with 17 additions and 5 deletions

View File

@@ -308,7 +308,7 @@ int sftp_packet_write(sftp_session sftp, uint8_t type, ssh_buffer payload){
}
sftp_packet sftp_packet_read(sftp_session sftp) {
unsigned char buffer[4096];
unsigned char buffer[MAX_BUF_SIZE];
sftp_packet packet = NULL;
uint32_t size;
int r;