From: H.G. Muller Date: Thu, 9 Feb 2012 17:46:08 +0000 (+0100) Subject: Fix MAXENGINES in WinBoard X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=3bc16204d0f6ce85ce96c0633bd2e19bdc59d46a;p=xboard.git Fix MAXENGINES in WinBoard The front-end arrays for expanding the engine list measured 1000 entries, in stead of MAXENGINES, leading them to overflow. --- diff --git a/winboard/wsettings.c b/winboard/wsettings.c index 5098d54..768a386 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -37,7 +37,7 @@ char *engineName, *engineDir, *engineChoice, *engineLine, *nickName, *params; Boolean isUCI, hasBook, storeVariant, v1, addToList, useNick, isUCCI; extern Option installOptions[], matchOptions[]; char *engineNr[] = { N_("First"), N_("Second"), NULL }; -char *engineList[1000] = {" "}, *engineMnemonic[1000] = {""}; +char *engineList[MAXENGINES] = {" "}, *engineMnemonic[MAXENGINES] = {""}; void (*okFunc)(); ChessProgramState *activeCps; Option *activeList;