summaryrefslogtreecommitdiff
path: root/glx/glx.go
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 /glx/glx.go
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 'glx/glx.go')
-rw-r--r--glx/glx.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/glx/glx.go b/glx/glx.go
index 2db5798..979d577 100644
--- a/glx/glx.go
+++ b/glx/glx.go
@@ -6885,7 +6885,7 @@ func getStringReply(buf []byte) *GetStringReply {
byteString := make([]byte, v.N)
copy(byteString[:v.N], buf[b:])
v.String = string(byteString)
- b += xgb.Pad(int(v.N))
+ b += int(v.N)
}
return v
@@ -9174,7 +9174,7 @@ func queryServerStringReply(buf []byte) *QueryServerStringReply {
byteString := make([]byte, v.StrLen)
copy(byteString[:v.StrLen], buf[b:])
v.String = string(byteString)
- b += xgb.Pad(int(v.StrLen))
+ b += int(v.StrLen)
}
return v