Reduce line line length

If clients have a maximum banner size, this will help to keep them
around for longer.
This commit is contained in:
Christopher Wellons
2019-02-03 08:08:27 -05:00
parent 1f1ce4e26d
commit 81046bcdec

View File

@@ -141,7 +141,7 @@ check(int r)
static int static int
randline(char *line) randline(char *line)
{ {
int len = 2 + rand() % 251; int len = 3 + rand() % 61;
for (int i = 0; i < len - 2; i++) for (int i = 0; i < len - 2; i++)
line[i] = 32 + rand() % 95; line[i] = 32 + rand() % 95;
line[len - 2] = 13; line[len - 2] = 13;