summaryrefslogtreecommitdiff
path: root/xf86dri
diff options
context:
space:
mode:
authorAndrew Gallant <[email protected]>2013-12-28 10:02:18 -0500
committerAndrew Gallant <[email protected]>2013-12-28 10:02:18 -0500
commitc3541209a0fb8271645c882f7e4a4d7254823992 (patch)
tree1bf8042cbe4c01f8f2b74640142ef35ba9e12630 /xf86dri
parent276338409158b6e8f45afadc94bd16532a369ef8 (diff)
It appears that the "Str" type (which is built into the core X protocol)
doesn't specify any padding. So it has to be treated as a special case. Close #12.
Diffstat (limited to 'xf86dri')
-rw-r--r--xf86dri/xf86dri.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xf86dri/xf86dri.go b/xf86dri/xf86dri.go
index 46fabca..65fcfa0 100644
--- a/xf86dri/xf86dri.go
+++ b/xf86dri/xf86dri.go
@@ -659,7 +659,7 @@ func getClientDriverNameReply(buf []byte) *GetClientDriverNameReply {
byteString := make([]byte, v.ClientDriverNameLen)
copy(byteString[:v.ClientDriverNameLen], buf[b:])
v.ClientDriverName = string(byteString)
- b += xgb.Pad(int(v.ClientDriverNameLen))
+ b += int(v.ClientDriverNameLen)
}
return v
@@ -1017,7 +1017,7 @@ func openConnectionReply(buf []byte) *OpenConnectionReply {
byteString := make([]byte, v.BusIdLen)
copy(byteString[:v.BusIdLen], buf[b:])
v.BusId = string(byteString)
- b += xgb.Pad(int(v.BusIdLen))
+ b += int(v.BusIdLen)
}
return v