projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e09a0ee
)
prevent buffer overflow
author
H.G. Muller
<h.g.muller@hccnet.nl>
Thu, 29 Oct 2009 03:35:06 +0000 (20:35 -0700)
committer
Arun Persaud
<arun@nubati.net>
Thu, 29 Oct 2009 03:37:50 +0000 (20:37 -0700)
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
patch
|
blob
|
history
diff --git
a/winboard/jaws.c
b/winboard/jaws.c
index
99f41b1
..
a9cfd7f
100644
(file)
--- a/
winboard/jaws.c
+++ b/
winboard/jaws.c
@@
-162,7
+162,7
@@
PSAYSTRING RealSayString;
\r
VOID SayString(char *mess, BOOL flag)
\r
{ // for debug file
\r
- char buf[MSG_SIZ], *p;
\r
+ char buf[8000], *p;
\r
if(appData.debugMode) fprintf(debugFP, "SAY '%s'\n", mess);
\r
strcpy(buf, mess);
\r
if(p = StrCaseStr(buf, "Xboard adjudication:")) {
\r