Banner size should account for newlines

This commit is contained in:
Matt Johnston 2021-10-12 21:29:42 +08:00
parent 3c2436cd05
commit c08177a3af

View File

@ -50,7 +50,7 @@
#define MIN_RSA_KEYLEN 1024
#endif
#define MAX_BANNER_SIZE 2000 /* this is 25*80 chars, any more is foolish */
#define MAX_BANNER_SIZE 2050 /* this is 25*80 chars, any more is foolish */
#define MAX_BANNER_LINES 20 /* How many lines the client will display */
/* the number of NAME=VALUE pairs to malloc for environ, if we don't have