From fd3af5fc7aca4a9e2f6a75dd123c44c19da8caa8 Mon Sep 17 00:00:00 2001 From: stefan11111 Date: Wed, 27 Aug 2025 11:12:45 +0300 Subject: [PATCH] Xext: Fix type mismatch in xvdisp.c Fixes: https://github.com/X11Libre/xserver/issues/706 Signed-off-by: stefan11111 --- Xext/xvdisp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Xext/xvdisp.c b/Xext/xvdisp.c index 7f6f77eb35..03fdafc9f0 100644 --- a/Xext/xvdisp.c +++ b/Xext/xvdisp.c @@ -763,12 +763,12 @@ ProcXvQueryImageAttributes(ClientPtr client) x_rpcbuf_t rpcbuf = { .swapped = client->swapped, .err_clear = TRUE }; - // allocating for `offsets` as well as `pitches` in one block - // both having CARD32 * num_planes (actually int32_t put into CARD32) - INT32 *offsets = x_rpcbuf_reserve(&rpcbuf, 2 * num_planes * sizeof(INT32)); + /* allocating for `offsets` as well as `pitches` in one block */ + /* both having CARD32 * num_planes (actually int32_t put into CARD32) */ + int *offsets = x_rpcbuf_reserve(&rpcbuf, 2 * num_planes * sizeof(int)); if (!offsets) return BadAlloc; - INT32 *pitches = offsets + num_planes; + int *pitches = offsets + num_planes; width = stuff->width; height = stuff->height;