mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
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:
committed by
Enrico Weigelt
parent
e62e88fd8b
commit
828135fd3e
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user