Build fix.

This commit is contained in:
Adam Jackson 2008-10-06 18:47:06 -04:00
parent c6d6d3e87a
commit 60cfaa45a5

View File

@ -1571,13 +1571,13 @@ ProcRenderCreateCursor (ClientPtr client)
stride = BitmapBytePad(width); stride = BitmapBytePad(width);
nbytes_mono = stride*height; nbytes_mono = stride*height;
srcbits = xcalloc(nbytes_mono); srcbits = xcalloc(1, nbytes_mono);
if (!srcbits) if (!srcbits)
{ {
xfree (argbbits); xfree (argbbits);
return (BadAlloc); return (BadAlloc);
} }
mskbits = xcalloc(nbytes_mono); mskbits = xcalloc(1, nbytes_mono);
if (!mskbits) if (!mskbits)
{ {
xfree(argbbits); xfree(argbbits);