xres/xkb/xvmc/modesetting: Fix incorrect pointer data size usage

* xled change tested with `xset led named "Scroll Lock"`
* modesetting change tested with `xrandr --output DP-1 --gamma 0.5:0.5:0.5`.
  Without this fix that command does nothing
* xvmc change tested with `mpv --vo=xv video.mp4`

Of the currently reported issues this fixes #104

Signed-off-by: dec05eba <dec05eba@protonmail.com>
This commit is contained in:
dec05eba
2025-06-12 23:31:20 +02:00
committed by Enrico Weigelt
parent fea8b78358
commit f397039d65
4 changed files with 4 additions and 4 deletions

View File

@@ -806,7 +806,7 @@ XkbFlushLedEvents(DeviceIntPtr dev,
XkbDDXUpdateDeviceIndicators(dev, sli, sli->effectiveState);
XkbSendExtensionDeviceNotify(dev, cause->client, ed);
}
memset((char *) ed, 0, sizeof(XkbExtensionDeviceNotify));
memset((char *) ed, 0, sizeof(xkbExtensionDeviceNotify));
}
return;
}