projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7980e7c
)
double buffer size to prevent overflow
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sun, 29 Nov 2009 19:56:32 +0000 (11:56 -0800)
committer
Arun Persaud
<arun@nubati.net>
Sun, 29 Nov 2009 19:56:32 +0000 (11:56 -0800)
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
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
339da00
..
b9348a9
100755
(executable)
--- a/
backend.c
+++ b/
backend.c
@@
-2042,7
+2042,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