From 2b45dc71e79a3eb7d4e8553273c9bc4f4282d50a Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 19 Jan 2007 01:10:09 +0000 Subject: BUG: There are only 4095 items in the buffer that is zero'd out using 4096. FIX: Fix the number used in memset. --- (limited to 'noncore') diff --git a/noncore/games/wordgame/wordgame.cpp b/noncore/games/wordgame/wordgame.cpp index 52e2be2..8cf92ef 100644 --- a/noncore/games/wordgame/wordgame.cpp +++ b/noncore/games/wordgame/wordgame.cpp @@ -588,7 +588,7 @@ bool ComputerPlayer::step() QPoint d = across ? QPoint(1,0) : QPoint(0,1); const Tile* tiles[99]; // ### max board size uchar nletter[4095]; // QDawg only handles 0..4095 - memset(nletter,0,4096); + memset(nletter,0,4095); for (int i=0; icount(); i++) { const Tile* r = rack->tileRef(i); if ( r->isBlank() ) -- cgit v0.9.0.2