summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--common-algo.c2
-rw-r--r--options.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/common-algo.c b/common-algo.c
index f75c144..21e39a2 100644
--- a/common-algo.c
+++ b/common-algo.c
@@ -210,7 +210,7 @@ int have_algo(char* algo, size_t algolen, algo_type algos[]) {
void buf_put_algolist(buffer * buf, algo_type localalgos[]) {
unsigned int pos = 0, i, len;
- char str[MAX_ALGO_LIST_LEN];
+ char str[50]; /* enough for local algo storage */
for (i = 0; localalgos[i].name != NULL; i++) {
if (localalgos[i].usable) {
diff --git a/options.h b/options.h
index 25cfa8b..5ec19fc 100644
--- a/options.h
+++ b/options.h
@@ -289,9 +289,6 @@ etc) slower (perhaps by 50%). Recommended for most small systems. */
#define MAX_PROPOSED_ALGO 20
-#define MAX_ALGO_LIST_LEN 100 /* max length of our sent algorithm list
- (cipher is longest) */
-
/* size/count limits */
#define MAX_LISTEN_ADDR 10