From 60cfaa45a532bd3cfcfb4bd57b2f657c0a8b6a6b Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 6 Oct 2008 18:47:06 -0400 Subject: Build fix. --- render/render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render/render.c') diff --git a/render/render.c b/render/render.c index 9e04a137f..7cb93bd18 100644 --- a/render/render.c +++ b/render/render.c @@ -1571,13 +1571,13 @@ ProcRenderCreateCursor (ClientPtr client) stride = BitmapBytePad(width); nbytes_mono = stride*height; - srcbits = xcalloc(nbytes_mono); + srcbits = xcalloc(1, nbytes_mono); if (!srcbits) { xfree (argbbits); return (BadAlloc); } - mskbits = xcalloc(nbytes_mono); + mskbits = xcalloc(1, nbytes_mono); if (!mskbits) { xfree(argbbits); -- cgit v1.2.3