From 6734a88610a9af0d747eb2ddb8b9a7f43b32d623 Mon Sep 17 00:00:00 2001 From: Michael Ortmann Date: Wed, 22 Nov 2023 09:16:08 +0100 Subject: [PATCH 1/2] replace magick number 8702 with a nice name --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 6ac8ec908..95398f01f 100644 --- a/src/main.c +++ b/src/main.c @@ -787,7 +787,7 @@ static void mainloop(int toplevel) { static int cleanup = 5; int xx, i, eggbusy = 1; - char buf[8702]; + char buf[RECVLINEMAX]; /* Lets move some of this here, reducing the number of actual * calls to periodic_timers From d2db534607e5fda1976ba4df4c73c968b1153f91 Mon Sep 17 00:00:00 2001 From: Michael Ortmann Date: Wed, 22 Nov 2023 09:32:10 +0100 Subject: [PATCH 2/2] Fix --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 95398f01f..c2f73d382 100644 --- a/src/main.c +++ b/src/main.c @@ -78,6 +78,8 @@ # include #endif +#include "mod/server.mod/server.h" /* RECVLINEMAX */ + #ifndef _POSIX_SOURCE # define _POSIX_SOURCE 1 /* Solaris needs this */ #endif