diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c index 3670446ac..a2d48b630 100644 --- a/hw/vfb/InitOutput.c +++ b/hw/vfb/InitOutput.c @@ -481,9 +481,9 @@ vfbInstallColormap(ColormapPtr pmap) swapcopy32(pXWDHeader->bits_per_rgb, pVisual->bitsPerRGBValue); swapcopy32(pXWDHeader->colormap_entries, pVisual->ColormapEntries); - ppix = xallocarray(entries, sizeof(Pixel)); - prgb = xallocarray(entries, sizeof(xrgb)); - defs = xallocarray(entries, sizeof(xColorItem)); + ppix = calloc(entries, sizeof(Pixel)); + prgb = calloc(entries, sizeof(xrgb)); + defs = calloc(entries, sizeof(xColorItem)); for (i = 0; i < entries; i++) ppix[i] = i;