From 124dee2db046aa36ec7e24bd64d2363961267a66 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 12 Aug 2025 14:26:07 +0200 Subject: [PATCH] panoramiX: XineramaGetImageData(): scope `ScratchPitch` variable Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/panoramiX.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Xext/panoramiX.c b/Xext/panoramiX.c index 297d6723d0..0656d3544e 100644 --- a/Xext/panoramiX.c +++ b/Xext/panoramiX.c @@ -1138,7 +1138,7 @@ XineramaGetImageData(DrawablePtr *pDrawables, { RegionRec SrcRegion, GrabRegion; BoxRec SrcBox; - int size, sizeNeeded, ScratchPitch, depth; + int size, sizeNeeded, depth; DrawablePtr pDraw = pDrawables[0]; char *ScratchMem = NULL; @@ -1197,7 +1197,7 @@ XineramaGetImageData(DrawablePtr *pDrawables, while (nbox--) { int w = pbox->x2 - pbox->x1; int h = pbox->y2 - pbox->y1; - ScratchPitch = PixmapBytePad(w, depth); + int ScratchPitch = PixmapBytePad(w, depth); sizeNeeded = ScratchPitch * h; if (sizeNeeded > size) {