From 828135fd3eea0709bf947d04c2b075d3fdf6f4cf Mon Sep 17 00:00:00 2001 From: stefan11111 Date: Mon, 11 Aug 2025 15:19:50 +0300 Subject: [PATCH] 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 --- Xext/vidmode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Xext/vidmode.c b/Xext/vidmode.c index e42804724c..3b12ec0301 100644 --- a/Xext/vidmode.c +++ b/Xext/vidmode.c @@ -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,