diff options
-rw-r--r-- | examples/libssh_scp.c | 2 | ||||
-rw-r--r-- | include/libssh/priv.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/examples/libssh_scp.c b/examples/libssh_scp.c index 1a3f08ac..626bd3f2 100644 --- a/examples/libssh_scp.c +++ b/examples/libssh_scp.c @@ -183,7 +183,7 @@ static int do_copy(struct location *src, struct location *dest){ socket_t fd; struct stat s; int w,r; - char buffer[4196]; + char buffer[16384]; int total=0; /*FIXME*/ if(dest->is_ssh && !src->is_ssh){ diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 7193f834..152753a3 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -884,8 +884,13 @@ int ssh_execute_message_callbacks(SSH_SESSION *session); }\ } while(0) +#ifdef DEBUG_CALLTRACE #define enter_function() _enter_function(session) #define leave_function() _leave_function(session) +#else +#define enter_function() (void)session +#define leave_function() (void)session +#endif /** Free memory space */ #define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0) |