$NetBSD: patch-bj,v 1.1 2008/08/31 06:52:29 dholland Exp $ --- server/color.c.orig 1998-05-05 15:01:35.000000000 -0400 +++ server/color.c 2008-08-31 01:25:45.000000000 -0400 @@ -31,6 +31,7 @@ #include #endif #include +#include #define NEED_REPLIES #define NEED_EVENTS #include @@ -807,7 +808,7 @@ alloc_cells_reply npixels = ((xAllocColorCellsReply *)rp)->nPixels; nmasks = ((xAllocColorCellsReply *)rp)->nMasks; real_pixels = (pixel_t *)((xAllocColorCellsReply *)rp + 1); - maskp = (mask_t *)(real_pixels[npixels]); + maskp = (mask_t *)&(real_pixels[npixels]); real_mask = 0; for (i=0; i