[RFC] [PATCH 7/8] [resourceproto] xXResQueryResourceBytesReply: fixed too small record by adding more padding

Erkki Seppälä erkki.seppala at vincit.fi
Mon Dec 27 06:57:01 PST 2010


---
 XResproto.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/XResproto.h b/XResproto.h
index 883af13..26d503d 100644
--- a/XResproto.h
+++ b/XResproto.h
@@ -210,8 +210,12 @@ typedef struct {
    CARD8   pad1;
    CARD16  sequenceNumber B16;
    CARD32  length B32;
-   CARD32  numSizes;
+   CARD32  numSizes B32;
    CARD32  pad2 B32;
+   CARD32  pad3 B32;
+   CARD32  pad4 B32;
+   CARD32  pad5 B32;
+   CARD32  pad6 B32;
    // followed by numSizes times XResResourceSizeValue
 } xXResQueryResourceBytesReply;
 #define sz_xXResQueryResourceBytesReply  32
-- 
1.7.0.4



More information about the xorg-devel mailing list