From 3bc16204d0f6ce85ce96c0633bd2e19bdc59d46a Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 9 Feb 2012 18:46:08 +0100 Subject: [PATCH] Fix MAXENGINES in WinBoard The front-end arrays for expanding the engine list measured 1000 entries, in stead of MAXENGINES, leading them to overflow. --- winboard/wsettings.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; -- 1.7.0.4