diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-08-03 21:17:23 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-08-03 21:17:23 +0800 |
commit | 387ebccf369be1d5bcc4ed810ada8f7e0c62aba3 (patch) | |
tree | 16026e93ced7e41d3b48fa10af3b7d6fb1c97226 /sysoptions.h | |
parent | 2f618af0862852809b413534b8e296eac91ebebf (diff) |
increase MAX_CMD_LEN to 9000
Diffstat (limited to 'sysoptions.h')
-rw-r--r-- | sysoptions.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysoptions.h b/sysoptions.h index 185c8e6..731232d 100644 --- a/sysoptions.h +++ b/sysoptions.h @@ -47,7 +47,7 @@ * the clearenv() function */ #define ENV_SIZE 100 -#define MAX_CMD_LEN 1024 /* max length of a command */ +#define MAX_CMD_LEN 9000 /* max length of a command */ #define MAX_TERM_LEN 200 /* max length of TERM name */ #define MAX_HOST_LEN 254 /* max hostname len for tcp fwding */ @@ -153,7 +153,8 @@ #define MAX_CHANNELS 100 /* simple mem restriction, includes each tcp/x11 connection, so can't be _too_ small */ -#define MAX_STRING_LEN 2400 /* Sun SSH needs this long for algos */ +#define MAX_STRING_LEN (MAX(MAX_CMD_LEN, 2400)) /* Sun SSH needs 2400 for algos, + MAX_CMD_LEN is usually longer */ /* For a 4096 bit DSS key, empirically determined */ #define MAX_PUBKEY_SIZE 1700 |