diff options
author | marha <marha@users.sourceforge.net> | 2011-02-20 12:29:25 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-02-20 12:29:25 +0000 |
commit | 8a191c08ddda2e66fa26f148d6c21959bb08f923 (patch) | |
tree | 78c31efc6a4cbb138fd32d2a866c94b72b004343 /xorg-server/hw/xfree86/dri2/dri2.c | |
parent | 48d0dcbd5b7f80810ce259bc9ed6f57f99e27ca9 (diff) | |
download | vcxsrv-8a191c08ddda2e66fa26f148d6c21959bb08f923.tar.gz vcxsrv-8a191c08ddda2e66fa26f148d6c21959bb08f923.tar.bz2 vcxsrv-8a191c08ddda2e66fa26f148d6c21959bb08f923.zip |
xserver xkeyboard-config libX11 pixman mesa git update 2011
Diffstat (limited to 'xorg-server/hw/xfree86/dri2/dri2.c')
-rw-r--r-- | xorg-server/hw/xfree86/dri2/dri2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/hw/xfree86/dri2/dri2.c b/xorg-server/hw/xfree86/dri2/dri2.c index aba2202d6..7d6f772d7 100644 --- a/xorg-server/hw/xfree86/dri2/dri2.c +++ b/xorg-server/hw/xfree86/dri2/dri2.c @@ -403,7 +403,7 @@ do_get_buffers(DrawablePtr pDraw, int *width, int *height, && (pDraw->height == pPriv->height)
&& (pPriv->serialNumber == DRI2DrawableSerial(pDraw));
- buffers = malloc((count + 1) * sizeof(buffers[0]));
+ buffers = calloc((count + 1), sizeof(buffers[0]));
for (i = 0; i < count; i++) {
const unsigned attachment = *(attachments++);
|