aboutsummaryrefslogtreecommitdiff
path: root/examples/ssh_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ssh_client.c')
-rw-r--r--examples/ssh_client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/ssh_client.c b/examples/ssh_client.c
index ec137436..aaf0cb5b 100644
--- a/examples/ssh_client.c
+++ b/examples/ssh_client.c
@@ -17,6 +17,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <limits.h>
#include <sys/select.h>
#include <sys/time.h>
@@ -297,7 +298,7 @@ static void shell(ssh_session session)
static void batch_shell(ssh_session session)
{
ssh_channel channel;
- char buffer[1024];
+ char buffer[PATH_MAX];
size_t i;
int s = 0;