Xext: xf86bigfont: fix FTBS on wrong packet length variable.
The `buflength` variable doesn't exist anymore, it's `rlength`. And even if the reply struct might have the same size as XGenericReply, it's cleaner to let the compiler compute it explicitly, just in case. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
c76f0d1d96
commit
5fbb2ae1df
|
@ -533,7 +533,8 @@ ProcXF86BigfontQueryFont(ClientPtr client)
|
|||
|
||||
xXF86BigfontQueryFontReply rep = {
|
||||
.type = X_Reply,
|
||||
.length = bytes_to_int32(buflength),
|
||||
.length = bytes_to_int32(sizeof(xXF86BigfontQueryFontReply)
|
||||
- sizeof(xGenericReply) + rlength),
|
||||
.sequenceNumber = client->sequence,
|
||||
.minBounds = pFont->info.ink_minbounds,
|
||||
.maxBounds = pFont->info.ink_maxbounds,
|
||||
|
|
Loading…
Reference in New Issue