vidmode: fix ProcVidModeGetDotClocks() reply size computation

A clock entry is 32 bits instead of 8 bits long.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-18 01:44:34 +02:00
committed by Enrico Weigelt
parent 90bfeca905
commit 352fb8ad85

View File

@@ -1432,7 +1432,7 @@ ProcVidModeGetDotClocks(ClientPtr client)
.type = X_Reply,
.sequenceNumber = client->sequence,
.length = bytes_to_int32(sizeof(xXF86VidModeGetDotClocksReply)
- sizeof(xGenericReply) + numClocks),
- sizeof(xGenericReply)) + numClocks,
.clocks = numClocks,
.maxclocks = MAXCLOCKS,
.flags = (ClockProg ? CLKFLAG_PROGRAMABLE : 0),