Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
| 3 | Add missing length fields to the replies. Without these, sanity checking in recent X |
| 4 | breaks things. |
| 5 | |
| 6 | RP 11/2/10 |
| 7 | |
| 8 | |
| 9 | Index: git/xcalibrateproto.h |
| 10 | =================================================================== |
| 11 | --- git.orig/xcalibrateproto.h 2010-02-11 11:47:45.711985932 +0000 |
| 12 | +++ git/xcalibrateproto.h 2010-02-11 11:40:21.000000000 +0000 |
| 13 | @@ -67,13 +67,13 @@ |
| 14 | BYTE type; /* X_Reply */ |
| 15 | BYTE pad1; |
| 16 | CARD16 sequenceNumber B16; |
| 17 | + CARD32 length; |
| 18 | CARD32 status; |
| 19 | CARD32 pad2 B32; |
| 20 | CARD32 pad3 B32; |
| 21 | CARD32 pad4 B32; |
| 22 | CARD32 pad5 B32; |
| 23 | CARD32 pad6 B32; |
| 24 | - CARD32 pad7 B32; |
| 25 | } xXCalibrateRawModeReply; |
| 26 | |
| 27 | #define sz_xXCalibrateRawModeReply 32 |
| 28 | @@ -92,13 +92,13 @@ |
| 29 | BYTE type; /* X_Reply */ |
| 30 | BYTE pad1; |
| 31 | CARD16 sequenceNumber B16; |
| 32 | + CARD32 length; |
| 33 | CARD32 x; |
| 34 | CARD32 y; |
| 35 | CARD32 pad2 B32; |
| 36 | CARD32 pad3 B32; |
| 37 | CARD32 pad4 B32; |
| 38 | CARD32 pad5 B32; |
| 39 | - CARD32 pad6 B32; |
| 40 | } xXCalibrateScreenToCoordReply; |
| 41 | |
| 42 | #define sz_xXCalibrateScreenToCoordReply 32 |