summaryrefslogtreecommitdiff
path: root/xproto
diff options
context:
space:
mode:
authorAndrew Gallant <[email protected]>2013-12-28 09:33:09 -0500
committerAndrew Gallant <[email protected]>2013-12-28 09:33:09 -0500
commit34dd98df049a0a6ecf661ff9fdfe31292688040a (patch)
treeb2cbe9e643ec6271bbcbdf8c1030a56575d57109 /xproto
parent9071499d31a04ae4e2e545e2f2227545d32187a4 (diff)
When writing, don't pad the length of bytes produced from inner
structs/unions. Each type should take care of its own padding. Close #14.
Diffstat (limited to 'xproto')
-rw-r--r--xproto/xproto.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xproto/xproto.go b/xproto/xproto.go
index 9b33030..5579ba9 100644
--- a/xproto/xproto.go
+++ b/xproto/xproto.go
@@ -886,7 +886,7 @@ func (v ClientMessageEvent) Bytes() []byte {
{
unionBytes := v.Data.Bytes()
copy(buf[b:], unionBytes)
- b += xgb.Pad(len(unionBytes))
+ b += len(unionBytes)
}
return buf