From 4f6eacd07aa4e085d86e2204f2520c5f588b4f13 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 28 Oct 2009 20:35:06 -0700 Subject: [PATCH] prevent buffer overflow This is a buffer-size adjustments to prevent the JAWS version from crashing when it has to read out loud very long comments. --- winboard/jaws.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/winboard/jaws.c b/winboard/jaws.c index 99f41b1..a9cfd7f 100644 --- a/winboard/jaws.c +++ b/winboard/jaws.c @@ -162,7 +162,7 @@ PSAYSTRING RealSayString; VOID SayString(char *mess, BOOL flag) { // for debug file - char buf[MSG_SIZ], *p; + char buf[8000], *p; if(appData.debugMode) fprintf(debugFP, "SAY '%s'\n", mess); strcpy(buf, mess); if(p = StrCaseStr(buf, "Xboard adjudication:")) { -- 1.7.0.4