summaryrefslogtreecommitdiff
path: root/render/render.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-10-06 18:47:06 -0400
committerAdam Jackson <ajax@redhat.com>2008-10-06 18:47:06 -0400
commit60cfaa45a532bd3cfcfb4bd57b2f657c0a8b6a6b (patch)
treee8bc081aadf8042e3f2a6e2067122474a3952402 /render/render.c
parentc6d6d3e87a472b641d883a6c000f96e5bdf48532 (diff)
Build fix.
Diffstat (limited to 'render/render.c')
-rw-r--r--render/render.c4
1 files changed, 2 insertions, 2 deletions
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);