Fix MAXENGINES in WinBoard
authorH.G. Muller <h.g.muller@hccnet.nl>
Thu, 9 Feb 2012 17:46:08 +0000 (18:46 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Thu, 9 Feb 2012 17:46:08 +0000 (18:46 +0100)
The front-end arrays for expanding the engine list measured 1000 entries,
in stead of MAXENGINES, leading them to overflow.

winboard/wsettings.c

index 5098d54..768a386 100644 (file)
@@ -37,7 +37,7 @@ char *engineName, *engineDir, *engineChoice, *engineLine, *nickName, *params;
 Boolean isUCI, hasBook, storeVariant, v1, addToList, useNick, isUCCI;\r
 extern Option installOptions[], matchOptions[];\r
 char *engineNr[] = { N_("First"), N_("Second"), NULL };\r
-char *engineList[1000] = {" "}, *engineMnemonic[1000] = {""};\r
+char *engineList[MAXENGINES] = {" "}, *engineMnemonic[MAXENGINES] = {""};\r
 void (*okFunc)();\r
 ChessProgramState *activeCps;\r
 Option *activeList;\r