From fe7b12db4fc0e95f3eef038581bf2154e1727c7a Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Tue, 7 Apr 2009 23:56:33 -0400 Subject: Correct the length calculation for the value field of GetPropertyReply. value_len only contains the number of data units, which are 1, 2, or 4 bytes depending on the value of the format field. The length of the value field is thus value_len multiplied by the bytes per unit, which is format / 8. Signed-off-by: Eamon Walsh --- src/xproto.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/xproto.xml b/src/xproto.xml index 6313da6..920285a 100644 --- a/src/xproto.xml +++ b/src/xproto.xml @@ -987,7 +987,13 @@ authorization from the authors. - value_len + + value_len + + format + 8 + + -- cgit v1.2.3