From ac04544f70d963bf11114882abc69186d7c04e74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Sun, 4 Jul 2004 18:50:30 +0000 Subject: [PATCH] Increased PLAYEDRACK_MAX, to avoid a crash when too many words were played in a game --- game/game_internals.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/game/game_internals.h b/game/game_internals.h index 244c6b5..7e09d47 100644 --- a/game/game_internals.h +++ b/game/game_internals.h @@ -16,7 +16,7 @@ /* along with this program; if not, write to the Free Software */ /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: game_internals.h,v 1.1 2004/04/08 09:43:06 afrab Exp $ */ +/* $Id: game_internals.h,v 1.2 2004/07/04 18:50:30 ipkiss Exp $ */ #ifndef _GAMESTRUCT_H #define _GAMESTRUCT_H @@ -25,7 +25,10 @@ extern "C" { #endif -#define PLAYEDRACK_MAX 50 +/* Number of played words. + * There are only 102 tiles, so we should be safe even if only one tile is + * played at each turn... */ +#define PLAYEDRACK_MAX 102 struct tgame { Dictionary dic;