From 81046bcdec6f9ee1368406b2fc3ad0b23f0a63e0 Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Sun, 3 Feb 2019 08:08:27 -0500 Subject: [PATCH] Reduce line line length If clients have a maximum banner size, this will help to keep them around for longer. --- endlessh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endlessh.c b/endlessh.c index 2363823..d4e4242 100644 --- a/endlessh.c +++ b/endlessh.c @@ -141,7 +141,7 @@ check(int r) static int randline(char *line) { - int len = 2 + rand() % 251; + int len = 3 + rand() % 61; for (int i = 0; i < len - 2; i++) line[i] = 32 + rand() % 95; line[len - 2] = 13;