summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clientloop.c b/clientloop.c
index 410dc54de..8e8d7627d 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -15,7 +15,7 @@ The main loop for the interactive session (client side).
15*/ 15*/
16 16
17#include "includes.h" 17#include "includes.h"
18RCSID("$Id: clientloop.c,v 1.3 1999/11/12 04:19:27 damien Exp $"); 18RCSID("$Id: clientloop.c,v 1.4 1999/11/21 02:23:53 damien Exp $");
19 19
20#include "xmalloc.h" 20#include "xmalloc.h"
21#include "ssh.h" 21#include "ssh.h"
@@ -322,8 +322,8 @@ void client_make_packets_from_stdin_data()
322 packet_not_very_much_data_to_write()) 322 packet_not_very_much_data_to_write())
323 { 323 {
324 len = buffer_len(&stdin_buffer); 324 len = buffer_len(&stdin_buffer);
325 if (len > 32768) 325 if (len > packet_get_maxsize())
326 len = 32768; /* Keep the packets at reasonable size. */ 326 len = packet_get_maxsize(); /* Keep the packets at reasonable size. */
327 packet_start(SSH_CMSG_STDIN_DATA); 327 packet_start(SSH_CMSG_STDIN_DATA);
328 packet_put_string(buffer_ptr(&stdin_buffer), len); 328 packet_put_string(buffer_ptr(&stdin_buffer), len);
329 packet_send(); 329 packet_send();