diff options
author | Adam Jackson <ajax@redhat.com> | 2008-10-06 14:19:30 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-10-06 14:19:30 -0400 |
commit | 0b7b89fbac0b3865b2cf51295c68a5f4c7523f28 (patch) | |
tree | cf24e95113974c482e0cc1bbb6be19c8b25879e7 /hw/xfree86/xaa/xaaCpyPlane.c | |
parent | 9187f6ad9ec7ba9569a93d92561aac17eaa83491 (diff) |
xalloc+bzero -> xcalloc
Diffstat (limited to 'hw/xfree86/xaa/xaaCpyPlane.c')
-rw-r--r-- | hw/xfree86/xaa/xaaCpyPlane.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/xfree86/xaa/xaaCpyPlane.c b/hw/xfree86/xaa/xaaCpyPlane.c index a0ebb75d2..aa4c0407c 100644 --- a/hw/xfree86/xaa/xaaCpyPlane.c +++ b/hw/xfree86/xaa/xaaCpyPlane.c @@ -131,11 +131,9 @@ XAACopyPlaneNtoNColorExpand( h = height = pbox->y2 - pbox->y1; pitch = BitmapBytePad(width); - if(!(data = xalloc(height * pitch))) + if(!(data = xcalloc(height, pitch))) goto ALLOC_FAILED; - bzero(data, height * pitch); - dataPtr = data; srcPtr = ((pptSrc->y) * srcwidth) + src + ((pptSrc->x) * Bpp) + offset; |