From a66247fa4d0cad3b73c322a7ce5d4e7266d9c27e Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 29 Nov 2009 11:56:32 -0800 Subject: [PATCH] double buffer size to prevent overflow This patch doubles the size of the ICS input buffer to 16KB, to prevent the suspected overflow with -keepLineBreaksICS false when using "inchannel 1" on FICS and over 500 people are tuned in. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index 2b31182..c1a08c9 100644 --- a/backend.c +++ b/backend.c @@ -2053,7 +2053,7 @@ read_from_ics(isr, closure, data, count, error) int count; int error; { -#define BUF_SIZE 8192 +#define BUF_SIZE (16*1024) /* overflowed at 8K with "inchannel 1" on FICS? */ #define STARTED_NONE 0 #define STARTED_MOVES 1 #define STARTED_BOARD 2 -- 1.7.0.4