dix: Xext: replace bytes_to_int32(pad_to_int32(x)) with bytes_to_int32(x)

bytes_to_int32 already adds padding, no need to compute that too.

Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
stefan11111
2025-08-11 15:19:50 +03:00
committed by Enrico Weigelt
parent e62e88fd8b
commit 828135fd3e

View File

@@ -1265,8 +1265,8 @@ ProcVidModeGetMonitor(ClientPtr client)
const int vendorLength = (vendorStr ? strlen(vendorStr) : 0);
const int modelLength = (modelStr ? strlen(modelStr) : 0);
const int nVendorItems = bytes_to_int32(pad_to_int32(vendorLength));
const int nModelItems = bytes_to_int32(pad_to_int32(modelLength));
const int nVendorItems = bytes_to_int32(vendorLength);
const int nModelItems = bytes_to_int32(modelLength);
xXF86VidModeGetMonitorReply rep = {
.type = X_Reply,