diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2009-04-07 23:56:33 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2009-04-07 23:56:33 -0400 |
commit | fe7b12db4fc0e95f3eef038581bf2154e1727c7a (patch) | |
tree | b0df14cc5204567ee2c7db883f41f7bf4107c9be /src/xproto.xml | |
parent | 4d9e8c51ea03546592fde23dd4304effd27f359d (diff) |
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 <ewalsh@tycho.nsa.gov>
Diffstat (limited to 'src/xproto.xml')
-rw-r--r-- | src/xproto.xml | 8 |
1 files changed, 7 insertions, 1 deletions
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. <field type="CARD32" name="value_len" /> <pad bytes="12" /> <list type="void" name="value"> - <fieldref>value_len</fieldref> + <op op="*"> + <fieldref>value_len</fieldref> + <op op="/"> + <fieldref>format</fieldref> + <value>8</value> + </op> + </op> </list> </reply> </request> |