From: H.G. Muller Date: Thu, 29 Oct 2009 03:35:06 +0000 (-0700) Subject: prevent buffer overflow X-Git-Tag: v4.4.1~4 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=4f6eacd07aa4e085d86e2204f2520c5f588b4f13;p=xboard.git 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. --- 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:")) {